maked error.log relative

This commit is contained in:
raphael60650 2021-06-15 17:25:47 +02:00
parent f29ace27a9
commit 8fdce2d4f5

View file

@ -1,4 +1,4 @@
import traceback import traceback
def log_error(self, exception): def log_error(self, exception):
with open("error.log", "a") as f: f.write(f"---\n{traceback.format_exc()}\n") with open("./error.log", "a") as f: f.write(f"---\n{traceback.format_exc()}\n")