[ck2cti] Raise ValueError in compatible_quantities instead of Exception
This commit is contained in:
parent
990f995796
commit
ce90a798c5
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ def compatible_quantities(quantity_basis, units):
|
|||
elif quantity_basis == 'molec':
|
||||
return 'molec' in units or 'mol' not in units
|
||||
else:
|
||||
raise Exception('Unknown quantity basis: "{0}"'.format(quantity_basis))
|
||||
raise ValueError('Unknown quantity basis: "{0}"'.format(quantity_basis))
|
||||
|
||||
|
||||
class InputParseError(Exception):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue