Skip to content

Commit 1f41c7d

Browse files
authored
Fix call to ValueError
1 parent d1a2657 commit 1f41c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansys/dpf/core/field_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def unit(self, value: str | tuple[Homogeneity, str]):
245245
self._api.csfield_definition_set_unit(self, value, None, 0, 0, 0)
246246
else:
247247
raise ValueError(
248-
None, message="Unit setter supports either string or tuple(Homogeneity, str)"
248+
"Unit setter supports either string or tuple(Homogeneity, str)"
249249
)
250250

251251
@location.setter

0 commit comments

Comments
 (0)