Changeset 1439
- Timestamp:
- May 20, 2005, 3:20:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pmesh/load_mesh/loadASCII.py
r1416 r1439 115 115 msg = 'Extension %s is unknown' %ofile[-4:] 116 116 raise IOError, msg 117 except SyntaxError:117 except (SyntaxError,IndexError): 118 118 msg = 'File could not be opened' 119 raise IOError, msg 120 except IndexError: 121 msg = 'File could not be opened' 122 raise IOError, msg 123 119 raise IOError, msg 124 120 return dict 125 121 … … 1011 1007 points_dict = _read_xya_file(fd, delimiter) 1012 1008 fd.close() 1013 except SyntaxError: 1014 fd.close() 1015 msg = 'File could not be opened' 1016 raise IOError, msg 1017 except IndexError: 1018 fd.close() 1019 msg = 'File could not be opened' 1020 raise IOError, msg 1021 except ValueError: # thrown by geo_ref, read ASCII 1009 except (IndexError,ValueError,SyntaxError): 1022 1010 fd.close() 1023 1011 msg = 'File could not be opened'
Note: See TracChangeset
for help on using the changeset viewer.