fix: root.destroy() erst nach Fehlerbehandlung aufrufen
This commit is contained in:
@@ -121,10 +121,11 @@ def load_model_with_progress(
|
||||
|
||||
root.after(50, poll)
|
||||
root.mainloop()
|
||||
root.destroy()
|
||||
|
||||
if error[0] is not None:
|
||||
root.destroy()
|
||||
messagebox.showerror("Fehler beim Modell-Download", str(error[0]))
|
||||
sys.exit(1)
|
||||
|
||||
root.destroy()
|
||||
return result[0]
|
||||
|
||||
Reference in New Issue
Block a user