Skip to content

Commit 8769a2e

Browse files
oscar-LTethanfurman
authored andcommitted
Forgot to specify exception type (TypeError)
1 parent c3e91e8 commit 8769a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ def test_incrementable(n):
12201220
try:
12211221
n + 1
12221222
return True
1223-
except:
1223+
except TypeError:
12241224
return False
12251225

12261226
checked_last_values = sorted(filter(test_incrementable, last_values))

0 commit comments

Comments
 (0)