Commit 75c7f1fb authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'dev'

fix tag info api if id is str

See merge request alpha/sun!68
parents 077988b8 5546b257
...@@ -39,7 +39,7 @@ class TagUpdateOrCreateView(APIView): ...@@ -39,7 +39,7 @@ class TagUpdateOrCreateView(APIView):
try: try:
data = self.rpc['venus/sun/tag/get'](id=id).unwrap() data = self.rpc['venus/sun/tag/get'](id=id).unwrap()
except Exception as e: except Exception as e:
error_logger.error(u'获取标签%d信息失败%s'%(id, e)) error_logger.error(u'获取标签%d信息失败%s'%(int(id), e))
raise raise
if not data: if not data:
data = {} data = {}
......
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