Skip to content

Commit b85b53c

Browse files
committed
f - [ModelicaSystemABC] additional checks for setInputs()
1 parent d7f720e commit b85b53c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/modelica_system_abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ def setInputs(
10511051

10521052
try:
10531053
val_evaluated_checked.append((float(item[0]), float(item[1])))
1054-
except ValueError as exc:
1054+
except (ValueError, TypeError) as exc:
10551055
raise ModelicaSystemError("All elements of the input for setInput() should be convertible to "
10561056
"type Tuple[float, float] - "
10571057
f"found [{repr(item[0])}, {repr(item[1])}] with types "

0 commit comments

Comments
 (0)