mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Closes #13859: Replaced reference to StandardError with reference to Exception. Thanks to Matt Joiner for spotting this and submitting a patch.
This commit is contained in:
parent
33d15f7c85
commit
a50c284076
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ class LogRecord(object):
|
|||
# for an example
|
||||
try:
|
||||
self.processName = mp.current_process().name
|
||||
except StandardError:
|
||||
except Exception:
|
||||
pass
|
||||
if logProcesses and hasattr(os, 'getpid'):
|
||||
self.process = os.getpid()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue