Changeset 11760:8bed2f6c2782 in orange


Ignore:
Timestamp:
11/14/13 11:51:07 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Handle an exception if loading of recent scheme list fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/canvasmain.py

    r11726 r11760  
    185185            QDesktopServices.DocumentsLocation 
    186186        ) 
    187  
    188         self.recent_schemes = config.recent_schemes() 
     187        try: 
     188            self.recent_schemes = config.recent_schemes() 
     189        except Exception: 
     190            log.error("Failed to load recent scheme list.", exc_info=True) 
     191            self.recent_schemes = [] 
     192 
    189193        self.num_recent_schemes = 15 
    190194 
Note: See TracChangeset for help on using the changeset viewer.