Commits

Aleš Erjavec committed 8bed2f6

Handle an exception if loading of recent scheme list fails.

Comments (0)

Files changed (1)

Orange/OrangeCanvas/application/canvasmain.py

         self.last_scheme_dir = QDesktopServices.StandardLocation(
             QDesktopServices.DocumentsLocation
         )
+        try:
+            self.recent_schemes = config.recent_schemes()
+        except Exception:
+            log.error("Failed to load recent scheme list.", exc_info=True)
+            self.recent_schemes = []
 
-        self.recent_schemes = config.recent_schemes()
         self.num_recent_schemes = 15
 
         self.open_in_external_browser = False