Skip to content

Commit fff636c

Browse files
matusvalosprytnyk
andauthored
Added example of bare-except (#6020)
Co-authored-by: Vladyslav Krylasov <[email protected]>
1 parent 42376b8 commit fff636c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
try:
2+
1 / 0
3+
except: # [bare-except]
4+
pass
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
try:
2+
1 / 0
3+
except ZeroDivisionError:
4+
pass

0 commit comments

Comments
 (0)