Skip to content

Commit ea1912c

Browse files
committed
Fix error conditional
1 parent 76693f1 commit ea1912c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ansys/dpf/core/field.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,10 @@ def _get_meshed_region(self) -> MeshedRegion:
728728
try:
729729
support = self._api.csfield_get_support_as_meshed_region(self)
730730
except DPFServerException as e:
731-
if "the field doesn't have this support type" in e.msg:
731+
if "the field doesn't have this support type" in str(e):
732732
support = None
733+
else:
734+
raise e
733735
return meshed_region.MeshedRegion(
734736
mesh=support,
735737
server=self._server,

0 commit comments

Comments
 (0)