Commit 28e0909c authored by 张永's avatar 张永

Merge branch 'feature/channel_package_zy' into 'dev'

异常处理

See merge request alpha/sun!81
parents ccadb3c4 637cf7cd
......@@ -158,9 +158,9 @@ class Channel(APIView):
resp = self.rpc['venus/sun/channel_build/channel/edit'](
id=channel_id, data=data
).unwrap()
except RPCFaultException as e:
except Exception as e:
error_logger.error('操作失败%s', e)
return self.write_fail(message='操作失败', code=-1)
return self.write_fail(message='路径名不能重复', code=-1)
version = resp.get('version', '')
if version and not channel_id:
channel_build_one.delay(version, url_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment