add save error log

This commit is contained in:
misyaguziya
2023-06-20 10:56:42 +09:00
parent 971701cc88
commit 2c1d75c55f

View File

@@ -542,4 +542,5 @@ if __name__ == "__main__":
app = App()
app.mainloop()
except Exception as e:
print(e)
with open("./error.log", "r") as fp:
fp.write(f"{e}")