Changeset 1201 for SHX


Ignore:
Timestamp:
15.12.2016 18:10:18 (3 years ago)
Author:
klaus
Message:

bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/commands/fdsnws.py

    r1200 r1201  
    214214                        channel, reqtime, reqlength ) 
    215215                print bulk 
    216                 st = client.get_waveforms_bulk( StringIO.StringIO(bulk) ) 
     216                if bulk != "": 
     217                    st = client.get_waveforms_bulk( StringIO.StringIO(bulk) ) 
    217218            elif reqmode == 'bystationset': 
    218219                bulk = "" 
     
    228229                        channel, reqtime, reqlength ) 
    229230                print bulk 
    230                 client = Client(fdsnadr) 
    231                 st = client.get_waveforms_bulk( StringIO.StringIO(bulk) ) 
     231                if bulk != "": 
     232                    client = Client(fdsnadr) 
     233                    st = client.get_waveforms_bulk( StringIO.StringIO(bulk) ) 
    232234            else: 
    233235                raise ShxError( "unknown request mode '%'" % reqmode, 
Note: See TracChangeset for help on using the changeset viewer.