Commit 5546b257 authored by 王浩's avatar 王浩

fix tag info api if id is str

parent b71ab3a3
......@@ -39,7 +39,7 @@ class TagUpdateOrCreateView(APIView):
try:
data = self.rpc['venus/sun/tag/get'](id=id).unwrap()
except Exception as e:
error_logger.error(u'获取标签%d信息失败%s'%(id, e))
error_logger.error(u'获取标签%d信息失败%s'%(int(id), e))
raise
if not 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