Skip to content

Commit 403e414

Browse files
committed
Extended error type exceptions when saving thermo/transport libraries
1 parent 3bbe5f7 commit 403e414

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arc/plotter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ def save_thermo_lib(species_list: list,
781781
thermo=spc.thermo,
782782
shortDesc=spc.thermo.comment,
783783
longDesc=spc.long_thermo_description)
784-
except (InvalidAdjacencyListError, DatabaseError, ValueError) as e:
784+
except (InvalidAdjacencyListError, DatabaseError, ValueError, TypeError) as e:
785785
logger.error(f'Could not save species {spc.label} in the thermo library, got:')
786786
logger.info(e)
787787
else:
@@ -810,7 +810,7 @@ def save_transport_lib(species_list, path, name, lib_long_desc=''):
810810
transport=spc.transport_data,
811811
shortDesc=spc.thermo.comment,
812812
longDesc=description)
813-
except (InvalidAdjacencyListError, ValueError) as e:
813+
except (InvalidAdjacencyListError, DatabaseError, ValueError, TypeError) as e:
814814
logger.error(f'Could not save species {spc.label} in the transport library, got:')
815815
logger.info(e)
816816
logger.info(f'\n\nTransport properties for {spc.label}:')

0 commit comments

Comments
 (0)