Skip to content

Commit 375f6a2

Browse files
authored
Final QA of raise tutorial (#400)
1 parent ed4a560 commit 375f6a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-raise-exception/divide2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ class MathLibraryError(Exception):
55
def divide(a, b):
66
try:
77
return a / b
8-
except ZeroDivisionError as ex:
9-
raise MathLibraryError(ex)
8+
except ZeroDivisionError as error:
9+
raise MathLibraryError(error)

0 commit comments

Comments
 (0)