Ignore:
Timestamp:
Mar 3, 2011, 6:04:03 PM (13 years ago)
Author:
wilsonr
Message:

Made changes described in ticket 359.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/gauge.py

    r8063 r8124  
    156156    except Exception, e:
    157157        msg = 'File "%s" could not be opened: Error="%s"' % (gauge_file, e)
    158         raise msg
     158        raise Exception(msg)
    159159
    160160    if verbose: log.critical('Gauges obtained from: %s' % gauge_file)
     
    193193    else:
    194194        msg = 'File "%s" could not be opened: no read permission' % sww_file
    195         raise msg
     195        raise Exception(msg)
    196196
    197197    sww_files = get_all_swwfiles(look_in_dir=dir_name,
     
    453453    except Exception, e:
    454454        msg = 'File "%s" could not be opened: Error="%s"' % (gauge_filename, e)
    455         raise msg
     455        raise Exception(msg)
    456456
    457457    if report is None:
     
    491491        except Exception, e:
    492492            msg = 'File "%s" could not be opened: Error="%s"' % (swwfile, e)
    493             raise msg
     493            raise Exception(msg)
    494494
    495495        if verbose:
     
    543543        if time_min < theminT: # min(T):
    544544            msg = 'Minimum time entered not correct - please try again'
    545             raise Exception, msg
     545            raise Exception(msg)
    546546
    547547    if time_max is None:
     
    550550        if time_max > themaxT: # max(T):
    551551            msg = 'Maximum time entered not correct - please try again'
    552             raise Exception, msg
     552            raise Exception(msg)
    553553
    554554    if verbose and len(gauge_index) > 0:
     
    611611                  % filename
    612612            msg += 'The header must be: easting, northing, name, elevation'
    613             raise Exception, msg
     613            raise Exception(msg)
    614614
    615615        if elev_index is None:
Note: See TracChangeset for help on using the changeset viewer.