Skip to content

Commit

Permalink
Extended error type exceptions when saving thermo/transport libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed May 10, 2023
1 parent 6349438 commit d697425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arc/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def save_thermo_lib(species_list: list,
thermo=spc.thermo,
shortDesc=spc.thermo.comment,
longDesc=spc.long_thermo_description)
except (InvalidAdjacencyListError, DatabaseError, ValueError) as e:
except (InvalidAdjacencyListError, DatabaseError, ValueError, TypeError) as e:
logger.error(f'Could not save species {spc.label} in the thermo library, got:')
logger.info(e)
else:
Expand Down Expand Up @@ -806,7 +806,7 @@ def save_transport_lib(species_list, path, name, lib_long_desc=''):
transport=spc.transport_data,
shortDesc=spc.thermo.comment,
longDesc=description)
except (InvalidAdjacencyListError, ValueError) as e:
except (InvalidAdjacencyListError, DatabaseError, ValueError, TypeError) as e:
logger.error(f'Could not save species {spc.label} in the transport library, got:')
logger.info(e)
logger.info(f'\n\nTransport properties for {spc.label}:')
Expand Down

0 comments on commit d697425

Please sign in to comment.