removed error raising when calling warn (#2853)

This commit is contained in:
Jonathan Shimwell 2024-01-20 19:06:45 +00:00 committed by GitHub
parent 0785500bc4
commit b97149ddf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,7 +213,7 @@ class OpenMCOperator(TransportOperator):
msg = (f"Nuclilde {nuclide} in material {mat.id} is not "
"present in the depletion chain and has no cross "
"section data.")
raise warn(msg)
warn(msg)
if mat.depletable:
burnable_mats.add(str(mat.id))
if mat.volume is None: