Commit e3f91bf2 authored by Guido van Rossum's avatar Guido van Rossum

Fix a silly "except '':" clause. This should have been "except:" -- I

must've used this to disable the exception handling temporarily to
debug the exception formatting machinery, and forgotten to re-enable
it before checking in.

Unfortunately, this made it into the ZODB 3.1 release, making this a
3.1.1 backport candidate.
parent f4cbeae6
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.17 $'[11:-2] __version__='$Revision: 1.18 $'[11:-2]
import os, sys, time import os, sys, time
...@@ -99,7 +99,7 @@ class stupid_log_write: ...@@ -99,7 +99,7 @@ class stupid_log_write:
lines = format_exception(error[0], error[1], error[2], lines = format_exception(error[0], error[1], error[2],
limit=100) limit=100)
buf.append(''.join(lines)) buf.append(''.join(lines))
except '': except:
buf.append("%s: %s" % error[:2]) buf.append("%s: %s" % error[:2])
if buf[-1] and buf[-1][-1] != "\n": if buf[-1] and buf[-1][-1] != "\n":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment