Changeset 10470:aff7d39afe18 in orange for Orange/__init__.py


Ignore:
Timestamp:
03/08/12 14:17:40 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Catch only ImportError, other errors should propagate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/__init__.py

    r10433 r10470  
    3131        try: 
    3232            __import__(name, globals(), locals(), [], -1) 
    33         except Exception as err: 
     33        except ImportError, err: 
    3434            warnings.warn("%sImporting '%s' failed: %s" % 
    3535                (disabledMsg if not alreadyWarned else "", name, err), 
Note: See TracChangeset for help on using the changeset viewer.