Commit 5800e84f authored by 段英荣's avatar 段英荣

modify

parent 1fc8d9b7
......@@ -23,9 +23,14 @@ class UserTransfer(object):
res["country_id"] = instance.country_id
res["is_online"] = instance.is_online
(is_recommend,is_shadow) = instance.get_is_recommend_flag()
res["is_recommend"] = is_recommend
res["is_shadow"] = is_shadow
try:
(is_recommend, is_shadow) = instance.get_is_recommend_flag()
res["is_recommend"] = is_recommend
res["is_shadow"] = is_shadow
except:
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc())
res["is_recommend"] = False
res["is_shadow"] = False
latest_topic_time_val = instance.get_latest_topic_time_val()
res["latest_topic_time_val"] = latest_topic_time_val
......
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