Commit fa7d4e87 authored by lixiaofang's avatar lixiaofang

add

parent b1bc9d03
...@@ -46,7 +46,7 @@ def write_id_file(id): ...@@ -46,7 +46,7 @@ def write_id_file(id):
data.write("/n") data.write("/n")
except: except:
pass logging.error("catch exception,main:%s" % traceback.format_exc())
if __name__ == "__main__": if __name__ == "__main__":
......
...@@ -21,6 +21,7 @@ def write_id_file(): ...@@ -21,6 +21,7 @@ def write_id_file():
return user_ids return user_ids
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc())
return [] return []
......
...@@ -17,10 +17,11 @@ def write_id_file(): ...@@ -17,10 +17,11 @@ def write_id_file():
data.truncate() data.truncate()
return user_ids return user_ids
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc())
return [] return []
if __name__ == "__main__": if __name__ == "__main__":
try: try:
......
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