- Timestamp:
- Mar 3, 2011, 6:04:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/gauge.py
r8063 r8124 156 156 except Exception, e: 157 157 msg = 'File "%s" could not be opened: Error="%s"' % (gauge_file, e) 158 raise msg158 raise Exception(msg) 159 159 160 160 if verbose: log.critical('Gauges obtained from: %s' % gauge_file) … … 193 193 else: 194 194 msg = 'File "%s" could not be opened: no read permission' % sww_file 195 raise msg195 raise Exception(msg) 196 196 197 197 sww_files = get_all_swwfiles(look_in_dir=dir_name, … … 453 453 except Exception, e: 454 454 msg = 'File "%s" could not be opened: Error="%s"' % (gauge_filename, e) 455 raise msg455 raise Exception(msg) 456 456 457 457 if report is None: … … 491 491 except Exception, e: 492 492 msg = 'File "%s" could not be opened: Error="%s"' % (swwfile, e) 493 raise msg493 raise Exception(msg) 494 494 495 495 if verbose: … … 543 543 if time_min < theminT: # min(T): 544 544 msg = 'Minimum time entered not correct - please try again' 545 raise Exception , msg545 raise Exception(msg) 546 546 547 547 if time_max is None: … … 550 550 if time_max > themaxT: # max(T): 551 551 msg = 'Maximum time entered not correct - please try again' 552 raise Exception , msg552 raise Exception(msg) 553 553 554 554 if verbose and len(gauge_index) > 0: … … 611 611 % filename 612 612 msg += 'The header must be: easting, northing, name, elevation' 613 raise Exception , msg613 raise Exception(msg) 614 614 615 615 if elev_index is None:
Note: See TracChangeset
for help on using the changeset viewer.