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 ed4a560 commit 375f6a2Copy full SHA for 375f6a2
python-raise-exception/divide2.py
@@ -5,5 +5,5 @@ class MathLibraryError(Exception):
5
def divide(a, b):
6
try:
7
return a / b
8
- except ZeroDivisionError as ex:
9
- raise MathLibraryError(ex)
+ except ZeroDivisionError as error:
+ raise MathLibraryError(error)
0 commit comments