From: Vinay Sajip Date: Wed, 25 Jan 2012 17:41:13 +0000 (+0000) Subject: Closes #13859: Replaced reference to StandardError with reference to Exception. Thank... X-Git-Tag: v3.2.3rc1~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a50c28407687b8baf1ea12f4adbf2516223a12a2;p=thirdparty%2FPython%2Fcpython.git Closes #13859: Replaced reference to StandardError with reference to Exception. Thanks to Matt Joiner for spotting this and submitting a patch. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 5f73ec22550d..3faad4f335fd 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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()