捕获异常并且写入日志

try:
server_id = _create(area_id=area_id, server_id=server_id, config_list=config_list)
except Exception as e:
msg = traceback.format_exc()
print(msg)
# dingding_send_txt_to_all(e)
posted @ 2023-02-09 10:07    阅读(17)  评论(0编辑  收藏  举报