improve python script error messages

This commit is contained in:
josc146
2023-07-07 20:16:35 +08:00
parent 2d545604f4
commit 6fbb86667c
9 changed files with 115 additions and 65 deletions

View File

@@ -243,4 +243,8 @@ def main():
if __name__ == "__main__":
main()
try:
main()
except Exception as e:
with open("error.txt", "w") as f:
f.write(str(e))