[Python-checkins] r53302 - python/trunk/Lib/logging/__init__.py
vinay.sajip
python-checkins at python.org
Mon Jan 8 19:51:46 CET 2007
Author: vinay.sajip
Date: Mon Jan 8 19:51:46 2007
New Revision: 53302
Modified:
python/trunk/Lib/logging/__init__.py
Log:
Bare except clause removed from LogRecord.__init__. Now, only ValueError, TypeError and AttributeError are trapped.
(SF #411881)
Modified: python/trunk/Lib/logging/__init__.py
==============================================================================
--- python/trunk/Lib/logging/__init__.py (original)
+++ python/trunk/Lib/logging/__init__.py Mon Jan 8 19:51:46 2007
@@ -41,8 +41,8 @@
__author__ = "Vinay Sajip <vinay_sajip at 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 @@
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
More information about the Python-checkins
mailing list