Changeset 7614


Ignore:
Timestamp:
18/10/10 11:28:08 (9 years ago)
Author:
astephen
Message:

Test for zero weather stations being found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/process_modules/extract_uk_station_data.py

    r7613 r7614  
    7676        if nYears > 1 and nStations > STATION_LIMIT: 
    7777            raise Exception("The number of selected station IDs has been calculated to be greater than %d. Please select a time window no longer than 1 year." % STATION_LIMIT) 
     78 
     79        if nStations == 0: 
     80            raise Exception("No weather stations have been found for this request. Please modify your request and try again.") 
    7881 
    7982        # Define data file base 
Note: See TracChangeset for help on using the changeset viewer.