Skip to content

Commit 1990d77

Browse files
committed
Replace bare except → cufile.cuFileError
1 parent 4a24743 commit 1990d77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_bindings/tests/test_cufile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def test_param(param, val, default_val):
14681468
try:
14691469
# Currently this line will raise, see below.
14701470
cufile.set_parameter_string(param, int(ctypes.addressof(orig_val_buf)))
1471-
except:
1471+
except cufile.cuFileError:
14721472
# This block will always be reached because cuFILE could start with garbage default (empty string)
14731473
# that cannot be restored. In other words, cuFILE does honor the common sense that getter/setter
14741474
# should be round-tripable.

0 commit comments

Comments
 (0)