diff --git a/aqt/errors.py b/aqt/errors.py index 4df67f3c8..b0d057a9a 100644 --- a/aqt/errors.py +++ b/aqt/errors.py @@ -143,9 +143,15 @@ add-ons section of our support site. else: platname = "Linux" + def schedVer(): + try: + return self.mw.col.schedVer() + except: + return "?" + return """\ Anki {} Python {} Qt {} PyQt {} Platform: {} Flags: frz={} ao={} sv={} """.format(appVersion, platform.python_version(), QT_VERSION_STR, PYQT_VERSION_STR, platname, - getattr(sys, "frozen", False), self.mw.addonManager.dirty, self.mw.col.schedVer()) + getattr(sys, "frozen", False), self.mw.addonManager.dirty, schedVer())