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

Skip to content

Commit 9b727ec

Browse files
committed
Closes #13859: Merged fix from 3.2 - thanks to Matt Joiner for spotting this and the patch.
2 parents 5816166 + a50c284 commit 9b727ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/logging/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2001-2011 by Vinay Sajip. All Rights Reserved.
1+
# Copyright 2001-2012 by Vinay Sajip. All Rights Reserved.
22
#
33
# Permission to use, copy, modify, and distribute this software and its
44
# documentation for any purpose and without fee is hereby granted,
@@ -288,7 +288,7 @@ def __init__(self, name, level, pathname, lineno,
288288
# for an example
289289
try:
290290
self.processName = mp.current_process().name
291-
except StandardError: #pragma: no cover
291+
except Exception: #pragma: no cover
292292
pass
293293
if logProcesses and hasattr(os, 'getpid'):
294294
self.process = os.getpid()

0 commit comments

Comments
 (0)