Skip to content

Commit 9809410

Browse files
authored
Added explicit exceptions to 'util/_validators.py'
1 parent 27d9c16 commit 9809410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/util/_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _check_for_default_values(fname, arg_val_dict, compat_args):
5959

6060
# could not compare them directly, so try comparison
6161
# using the 'is' operator
62-
except:
62+
except ValueError:
6363
match = (arg_val_dict[key] is compat_args[key])
6464

6565
if not match:

0 commit comments

Comments
 (0)