Skip to content

Commit

Permalink
handle attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed May 24, 2024
1 parent 5f4a4a0 commit a5853c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molecularnodes/io/parse/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def att_sec_struct():
)
if verbose:
print(f'Added {att["name"]} after {time.process_time() - start} s')

Check warning on line 681 in molecularnodes/io/parse/molecule.py

View check run for this annotation

Codecov / codecov/patch

molecularnodes/io/parse/molecule.py#L681

Added line #L681 was not covered by tests
except (TypeError, KeyError) as e:
except (AttributeError, TypeError, KeyError) as e:
if verbose:
warnings.warn(

Check warning on line 684 in molecularnodes/io/parse/molecule.py

View check run for this annotation

Codecov / codecov/patch

molecularnodes/io/parse/molecule.py#L684

Added line #L684 was not covered by tests
f"Unable to add attribute: {att['name']}. Error: {str(e)}"
Expand Down

0 comments on commit a5853c2

Please sign in to comment.