Skip to content

Commit e8f1721

Browse files
committed
Explicit exception coverage
1 parent a4198b4 commit e8f1721

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Deeploy/OperatorDescriptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def FloatTupleUnpack(value: Any) -> Tuple[float, ...]:
5555
def IntTupleIfNotSingleItemUnpack(value: Any) -> Union[int, Tuple[int, ...]]:
5656
try:
5757
return IntUnpack(value)
58-
except:
58+
except ValueError:
5959
return IntTupleUnpack(value)
6060

6161

0 commit comments

Comments
 (0)