Skip to content

Commit

Permalink
Fixed grammar and added Index Error
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 committed Apr 9, 2023
1 parent 53559df commit 9f5be31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arc/job/adapters/ts/heuristics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ def h_abstraction(arc_reaction: 'ARCReaction',
d3=d3,
reactants_reversed=reactants_reversed,
)
except ValueError as e:
except (ValueError, IndexError) as e:
logger.error(f'Could not generate a guess using Heuristics for H abstraction reaction, got:\n{e}')

if xyz_guess is not None and not colliding_atoms(xyz_guess):
Expand Down
2 changes: 1 addition & 1 deletion arc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def execute(self) -> dict:
logger.info('\n')
for rxn in self.reactions:
if not isinstance(rxn, ARCReaction):
raise ValueError(f'All reactions be ARCReaction objects. Got {type(rxn)}')
raise ValueError(f'All reactions must be ARCReaction objects. Got {type(rxn)}')
self.scheduler = Scheduler(project=self.project,
species_list=self.species,
rxn_list=self.reactions,
Expand Down

0 comments on commit 9f5be31

Please sign in to comment.