Commit 922a2010 authored by 赵建伟's avatar 赵建伟

update codes

parent ed3f0aab
......@@ -130,10 +130,9 @@ def check_is_ok():
shd_dic[shd[0]] = shd[1]
for suc in suc_list:
if shd_dic[suc[0]] != suc[1]:
if shd_dic.get(suc[0]) != suc[1]:
is_send = True
error_msg += "【" + mapping_dic[suc[0]] + "】打点异常,应打点个数为:" + bytes(shd_dic[suc[0]]) + ",实际打点个数为:" + bytes(
suc[1]) + ", 请核实!\n"
error_msg += "【" + mapping_dic.get(suc[0]) + "】打点异常,应打点个数为:" + bytes(shd_dic.get(suc[0])) + ",实际打点个数为:" + bytes(suc[1]) + ", 请核实!\n"
if is_send:
logging.error(error_msg)
......@@ -142,4 +141,4 @@ def check_is_ok():
# 主入口
if __name__ == '__main__':
check_is_ok()
check_is_ok()
\ No newline at end of file
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