diff --git a/aqt/main.py b/aqt/main.py index f794fc5af..49443d106 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -280,7 +280,7 @@ close the profile or restart Anki.""")) for w in self.app.topLevelWidgets(): if w.isVisible(): # windows with this property are safe to close immediately - if getattr(w, "silentlyClose"): + if getattr(w, "silentlyClose", None): w.close() else: showWarning(f"Window should have been closed: {w}")