Skip to content

Commit

Permalink
[Input] Fix use of undefined exception class in cti2yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jun 15, 2020
1 parent 39528dc commit d02f2a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interfaces/cython/cantera/cti2yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,11 +1419,11 @@ def __init__(self, name='', elements='', species='', note='',
self.site_density = site_density

if name == '':
raise CTI_Error('sublattice name must be specified')
raise InputError('sublattice name must be specified')
if species == '':
raise CTI_Error('sublattice species must be specified')
raise InputError('sublattice species must be specified')
if site_density is None:
raise CTI_Error('sublattice '+name
raise InputError('sublattice '+name
+' site density must be specified')

def get_yaml(self, out):
Expand Down

0 comments on commit d02f2a7

Please sign in to comment.