]> granicus.if.org Git - python/commitdiff
Bare except clause removed from LogRecord.__init__. Now, only ValueError, TypeError...
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 8 Jan 2007 18:51:46 +0000 (18:51 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 8 Jan 2007 18:51:46 +0000 (18:51 +0000)
(SF #411881)

Lib/logging/__init__.py

index c72730843e46af01e1c7e94a8f671a43c8f401a8..797fac6eed85e5af06ccaffcae5af16de2d7e8f4 100644 (file)
@@ -41,8 +41,8 @@ except ImportError:
 
 __author__  = "Vinay Sajip <vinay_sajip@red-dove.com>"
 __status__  = "production"
-__version__ = "0.4.9.9"
-__date__    = "06 February 2006"
+__version__ = "0.5.0.0"
+__date__    = "08 January 2007"
 
 #---------------------------------------------------------------------------
 #   Miscellaneous module data
@@ -243,7 +243,7 @@ class LogRecord:
         try:
             self.filename = os.path.basename(pathname)
             self.module = os.path.splitext(self.filename)[0]
-        except:
+        except (TypeError, ValueError, AttributeError):
             self.filename = pathname
             self.module = "Unknown module"
         self.exc_info = exc_info