From 90a5a48d6cf71bbf98e0c4cad406c7af8ec7214b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 8 Sep 2017 18:42:26 +1000 Subject: [PATCH] fix silentlyClose check --- aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")