Ignore:
Timestamp:
05/21/12 12:30:06 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Handle all exceptions when entry_points loading fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/orngRegistry.py

    r10865 r10879  
    102102        except ImportError, err: 
    103103            print "While loading, importing widgets '%s' failed: %s" % (entry_point.name, err) 
     104        except pkg_resources.DistributionNotFound, err: 
     105            print "Loading add-on '%s' failed because of a missing dependency: '%s'" % (entry_point.name, err) 
     106        except Exception, err: 
     107            print "An exception occurred during the loading of '%s':\n%r" %(entry_point.name, err) 
    104108 
    105109    categories = {}      
Note: See TracChangeset for help on using the changeset viewer.