Changeset 2174


Ignore:
Timestamp:
Dec 22, 2005, 1:01:07 PM (19 years ago)
Author:
sexton
Message:

Catching exception when filename is illegal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/load_mesh/loadASCII.py

    r2019 r2174  
    661661   
    662662    # NetCDF file definition
    663     outfile = NetCDFFile(file_name, 'w')
    664    
     663    try:
     664        outfile = NetCDFFile(file_name, 'w')
     665    except:
     666        msg = 'File %s could not be created' %file_name
     667        raise msg
     668       
    665669    #Create new file
    666670    outfile.institution = 'Geoscience Australia'
Note: See TracChangeset for help on using the changeset viewer.