We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 215d00d commit fa0a1aeCopy full SHA for fa0a1ae
doc/data/messages/b/bad-except-order/bad.py
@@ -0,0 +1,8 @@
1
+try:
2
+ print(int(input()))
3
+except Exception:
4
+ raise
5
+except TypeError: # [bad-except-order]
6
+ # This block cannot be reached since TypeError exception
7
+ # is caught by previous exception handler.
8
doc/data/messages/b/bad-except-order/good.py
@@ -0,0 +1,6 @@
+except TypeError:
0 commit comments