Commit 8c155ed9 authored by 张晓彤's avatar 张晓彤

添加捕获最外层异常

parent b7f001dc
......@@ -62,7 +62,7 @@ def process(dispatcher):
# # 直接读取数据库写入redis
# direct2redis()
# try:
try:
# 更新周期参数
logger.info("#####################################周期更新开始#####################################")
......@@ -154,9 +154,9 @@ def process(dispatcher):
logger.info("#####################################周期更新结束#####################################")
# except Exception as es:
# logger.error("最外层异常捕获")
# logger.error(es)
except Exception as es:
logger.error("最外层异常捕获")
logger.error(es)
def perform(inc, dispatcher):
......
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