[Zope3-checkins]
SVN: Zope3/trunk/src/zope/exceptions/exceptionformatter.py
Removed bare except. That fixed a XXX.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Jul 13 12:53:33 EDT 2004
Log message for revision 26470:
Removed bare except. That fixed a XXX.
Changed:
U Zope3/trunk/src/zope/exceptions/exceptionformatter.py
-=-
Modified: Zope3/trunk/src/zope/exceptions/exceptionformatter.py
===================================================================
--- Zope3/trunk/src/zope/exceptions/exceptionformatter.py 2004-07-13 16:52:22 UTC (rev 26469)
+++ Zope3/trunk/src/zope/exceptions/exceptionformatter.py 2004-07-13 16:53:32 UTC (rev 26470)
@@ -53,8 +53,8 @@
if revision is not None:
try:
revision = str(revision).strip()
- # XXX bare except without a comment explaining it.
- except:
+ except (ValueError, AttributeError):
+ # Just in case revisions cannot be converted to strings.
revision = '???'
return revision
More information about the Zope3-Checkins
mailing list