We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7f720e commit b85b53cCopy full SHA for b85b53c
1 file changed
OMPython/modelica_system_abc.py
@@ -1051,7 +1051,7 @@ def setInputs(
1051
1052
try:
1053
val_evaluated_checked.append((float(item[0]), float(item[1])))
1054
- except ValueError as exc:
+ except (ValueError, TypeError) as exc:
1055
raise ModelicaSystemError("All elements of the input for setInput() should be convertible to "
1056
"type Tuple[float, float] - "
1057
f"found [{repr(item[0])}, {repr(item[1])}] with types "
0 commit comments