Changeset 3262 for TI02-CSML


Ignore:
Timestamp:
24/01/08 13:55:14 (11 years ago)
Author:
domlowe
Message:

nicer exception

File:
1 edited

Legend:

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

    r3240 r3262  
    117117    VALUESTORAGE='fileextract' 
    118118    SPATIALSTORAGE='fileextract' 
     119    FEATURETYPE=None 
    119120     
    120121    #... 
     
    184185                    print usage 
    185186                    sys.exit()   
    186                      
     187     
     188    if FEATURETYPE is None: 
     189        raise Exception('No featuretype declared in config file (or no config file)') 
     190      
     191     
    187192    # Handle defaults in case of no file mapping: 
    188193    if MAPPING is None: 
Note: See TracChangeset for help on using the changeset viewer.