Skip to content

Commit

Permalink
Add informative error message to SymmetryUndeterminedError (#4155)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase authored Nov 17, 2024
1 parent 424672f commit 225d43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatgen/symmetry/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _get_symmetry_dataset(cell, symprec, angle_tolerance):
"""
dataset = spglib.get_symmetry_dataset(cell, symprec=symprec, angle_tolerance=angle_tolerance)
if dataset is None:
raise SymmetryUndeterminedError
raise SymmetryUndeterminedError(spglib.get_error_message())
return dataset


Expand Down

0 comments on commit 225d43f

Please sign in to comment.