ck2cti.py raises an exception when encountering duplicate transport data
This commit is contained in:
parent
66c9d4c1f0
commit
6f5a38a2ba
1 changed files with 2 additions and 0 deletions
|
|
@ -1466,6 +1466,8 @@ def parseTransportData(lines, speciesList):
|
|||
|
||||
speciesName = data[0]
|
||||
if speciesName in speciesDict:
|
||||
if speciesDict[speciesName].transport is not None:
|
||||
raise InputParseError('Duplicate transport data given for species "{0}".'.format(speciesName))
|
||||
speciesDict[speciesName].transport = TransportData(*data)
|
||||
|
||||
################################################################################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue