Skip to content

Commit

Permalink
feat(test): #16 update test_try
Browse files Browse the repository at this point in the history
  • Loading branch information
rohaquinlop committed Mar 3, 2024
1 parent a0c5a9d commit e4f2aa0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_try.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
def test_try():
try:
a = b
except:
pass
# Code that may raise an exception
pass
except TypeError:
print("Caught a TypeError")
except ValueError:
print("Caught a ValueError")
except Exception as e:
print(f"Caught an exception: {str(e)}")

0 comments on commit e4f2aa0

Please sign in to comment.