Changeset 834 for SHX/trunk


Ignore:
Timestamp:
11/07/12 17:30:53 (8 years ago)
Author:
marcus
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/modules/stations.py

    r833 r834  
    88import sqlalchemy.orm as orm 
    99from sqlalchemy.ext.declarative import declarative_base 
     10from sqlalchemy.exc import OperationalError 
    1011 
    1112from obspy.core import UTCDateTime 
    1213from SeismicHandler.config import Settings 
    1314from SeismicHandler.basics import Singleton 
     15from SeismicHandler.basics.messages import log_message 
    1416 
    1517FUTURE_DATE = UTCDateTime(3e10) 
     
    276278        except KeyError: 
    277279            return [] 
     280        except OperationalError as E: 
     281            # sqlite sometimes does weird things, we log it for now 
     282            log_message("debug.stations", "%s: %s" % (db, str(E))) 
     283            return [] 
    278284 
    279285    def __getitem__(self, codedate): 
Note: See TracChangeset for help on using the changeset viewer.