应对timeout问题

This commit is contained in:
zhbaor 2023-09-30 18:41:02 +08:00
parent 854c97976a
commit 6f56393ad0

View file

@ -225,6 +225,7 @@ class RIICReportAnalysis:
for i in output_list for i in output_list
], ],
) )
return
except Exception as e: except Exception as e:
err_msg = "出错啦!\n" err_msg = "出错啦!\n"
err_msg += f"date_list = {date_list}\n" err_msg += f"date_list = {date_list}\n"
@ -232,6 +233,7 @@ class RIICReportAnalysis:
err_msg += f"gold_list = {gold_list}\n" err_msg += f"gold_list = {gold_list}\n"
err_msg += f"exp_list = {exp_list}\n" err_msg += f"exp_list = {exp_list}\n"
err_msg += str(e) err_msg += str(e)
if str(e) != "timed out":
await chain.onebot_reply(Text(err_msg), At("1040110848")) await chain.onebot_reply(Text(err_msg), At("1040110848"))