Change 'exception happened' to 'exception occurred' in two places (#19767)

This commit is contained in:
Noah Doersing 2020-05-01 06:30:10 +02:00 committed by GitHub
parent 3e0a6f37df
commit 8bcfd31cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ The rest of the line provides detail based on the type of exception and what
caused it. caused it.
The preceding part of the error message shows the context where the exception The preceding part of the error message shows the context where the exception
happened, in the form of a stack traceback. In general it contains a stack occurred, in the form of a stack traceback. In general it contains a stack
traceback listing source lines; however, it will not display lines read from traceback listing source lines; however, it will not display lines read from
standard input. standard input.

View File

@ -374,7 +374,7 @@ class BaseServer:
""" """
print('-'*40, file=sys.stderr) print('-'*40, file=sys.stderr)
print('Exception happened during processing of request from', print('Exception occurred during processing of request from',
client_address, file=sys.stderr) client_address, file=sys.stderr)
import traceback import traceback
traceback.print_exc() traceback.print_exc()