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

Skip to content

Commit 8bcfd31

Browse files
authored
Change 'exception happened' to 'exception occurred' in two places (#19767)
1 parent 3e0a6f3 commit 8bcfd31

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/errors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The rest of the line provides detail based on the type of exception and what
6767
caused it.
6868

6969
The preceding part of the error message shows the context where the exception
70-
happened, in the form of a stack traceback. In general it contains a stack
70+
occurred, in the form of a stack traceback. In general it contains a stack
7171
traceback listing source lines; however, it will not display lines read from
7272
standard input.
7373

Lib/socketserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def handle_error(self, request, client_address):
374374
375375
"""
376376
print('-'*40, file=sys.stderr)
377-
print('Exception happened during processing of request from',
377+
print('Exception occurred during processing of request from',
378378
client_address, file=sys.stderr)
379379
import traceback
380380
traceback.print_exc()

0 commit comments

Comments
 (0)