mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
8 lines
No EOL
285 B
Python
8 lines
No EOL
285 B
Python
import traceback
|
|
from tkinter import messagebox
|
|
|
|
|
|
def log_error(self):
|
|
error = traceback.format_exc()
|
|
with open("./error.log", "a") as f: f.write(f"---\n{error}\n")
|
|
messagebox.showerror(self.translate("Error"), self.translate("An error occured", " :", "\n", error, "\n\n")) |