Changeset 823 for SHX/trunk


Ignore:
Timestamp:
11/06/12 16:51:04 (8 years ago)
Author:
marcus
Message:
  • skip error if filter definition is not set
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/tools/import_inventory.py

    r811 r823  
    339339                _, stream, comp = strm.split('-') 
    340340 
    341                 ffilter = fts.get_value(t[0]) 
     341                try: 
     342                    ffilter = fts.get_value(t[0]) 
     343                except IndexError: 
     344                    # no filter defined for timespan 
     345                    continue 
    342346 
    343347                s["stream"] = stream 
Note: See TracChangeset for help on using the changeset viewer.