Ignore:
Timestamp:
28/11/07 10:08:12 (12 years ago)
Author:
domlowe
Message:

Nicer error messages when imports fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csmllibs/csmldataiface.py

    r3043 r3066  
    1717    import nappy  
    1818except ImportError: 
    19     pass 
    20     #print 'could not import NASAAmes interface' 
     19    print "NASAAmes interface not available. CSML will still work, but won't support NASA Ames files" 
    2120import string 
    2221import sys 
     
    3433    import Image 
    3534except ImportError: 
    36     print 'could not import Image' 
    37     pass 
     35    print "Python Image Libarary not available. CSML will still work, but won't support image files" 
    3836 
    3937try: 
Note: See TracChangeset for help on using the changeset viewer.