Ignore:
Timestamp:
Jun 11, 2010, 10:27:11 AM (13 years ago)
Author:
steve
Message:

working test_quantity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anuga_1d/quantity.py

    r7815 r7818  
    232232            except ValueError:
    233233                msg = ("Illegal type for variable 'numeric': %s" % type(numeric))
    234                 raise Exception, msg
     234                raise Exception(msg)
    235235            self.set_values_from_constant(numeric)
    236236
     
    299299        if location not in ['vertices', 'centroids', 'unique_vertices']:
    300300            msg = 'Invalid location: %s, (possible choices vertices, centroids, unique_vertices)' %location
    301             raise msg
     301            raise Exception(msg)
    302302
    303303        if X is None:
    304304            msg = 'Given values are None'
    305             raise msg
     305            raise Exception(msg)
    306306
    307307        import types
     
    441441        if location not in ['vertices', 'centroids', 'unique vertices']:
    442442            msg = 'Invalid location: %s' %location
    443             raise msg
     443            raise Exception(msg)
    444444
    445445        import types, Numeric
     
    463463                if cells is None:
    464464                    msg = 'Unique vertex not associated with cells'
    465                     raise msg
     465                    raise Exception(msg)
    466466
    467467                # Go through all cells, vertex pairs
     
    614614        if sum(equal(denominator, 0.0)) > 0.0:
    615615            msg = 'Zero division in semi implicit update. Call Stephen :-)'
    616             raise msg
     616            raise Exception(msg)
    617617        else:
    618618            #Update conserved_quantities from semi implicit updates
Note: See TracChangeset for help on using the changeset viewer.