Skip to content

Commit

Permalink
f c
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Oct 28, 2024
1 parent 0c6d367 commit 3a55c4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arc/species/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,11 @@ def molecules_from_xyz(xyz: Optional[Union[dict, str]],
atom.radical_electrons = 0

if mol_bo is None and mol_s1_updated is not None and original_molecule is not None:
mol_bo = add_bond_order_to_s_mol(mol_s1_updated, original_molecule)
try:
mol_bo = add_bond_order_to_s_mol(mol_s1_updated, original_molecule)
except SanitizationError:

Check warning on line 1451 in arc/species/converter.py

View check run for this annotation

Codecov / codecov/patch

arc/species/converter.py#L1451

Added line #L1451 was not covered by tests
logger.warning(f'Could not add bond orders to {mol_s1_updated.copy(deep=True).to_smiles()}!')
return mol_s1_updated, None

Check warning on line 1453 in arc/species/converter.py

View check run for this annotation

Codecov / codecov/patch

arc/species/converter.py#L1453

Added line #L1453 was not covered by tests

return mol_s1_updated, mol_bo

Expand Down

0 comments on commit 3a55c4d

Please sign in to comment.