Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Forgot to specify exception type (TypeError)
  • Loading branch information
oscar-LT authored and ethanfurman committed Jun 22, 2022
commit 8769a2ee42397f8d239f10c65e2fe3848aa02163
2 changes: 1 addition & 1 deletion Lib/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ def test_incrementable(n):
try:
n + 1
return True
except:
except TypeError:
return False

checked_last_values = sorted(filter(test_incrementable, last_values))
Expand Down