mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +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
|
# for an example
|
||||||
try:
|
try:
|
||||||
self.processName = mp.current_process().name
|
self.processName = mp.current_process().name
|
||||||
except StandardError:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
if logProcesses and hasattr(os, 'getpid'):
|
if logProcesses and hasattr(os, 'getpid'):
|
||||||
self.process = os.getpid()
|
self.process = os.getpid()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue