Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf79cdb

Browse files
committed
Issue #28306: Update exception message of ZeroDivisionError
1 parent ab39b09 commit cf79cdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/errors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ indirectly) in the try clause. For example::
201201
... except ZeroDivisionError as err:
202202
... print('Handling run-time error:', err)
203203
...
204-
Handling run-time error: int division or modulo by zero
204+
Handling run-time error: division by zero
205205

206206

207207
.. _tut-raising:

0 commit comments

Comments
 (0)