Skip to content

Commit

Permalink
From none the exception to keep trace clean.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Jun 9, 2024
1 parent dbe84d8 commit 7f91818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiron_atomistics/sphinx/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def check_band_occupancy(self, plot=True):
try:
elec_dict = self._job.project_hdf5["output/generic/dft"]["n_valence"]
except ValueError:
raise AssertionError("Number of electrons not parsed")
raise AssertionError("Number of electrons not parsed") from None
n_elec = np.sum(
[elec_dict[k] for k in self._job.structure.get_chemical_symbols()]
)
Expand Down

0 comments on commit 7f91818

Please sign in to comment.