Skip to content

Commit

Permalink
Revert back to bare except in PMDBWSGIHTTPServer
Browse files Browse the repository at this point in the history
For consistency with PMDBHTTPServer, and so you can interrupt infinite
loops and drop into a debugger with a ^C.
  • Loading branch information
mgedmin committed Oct 26, 2017
1 parent 7a16ad2 commit 7f94d57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zope/server/http/wsgihttpserver.py
Expand Up @@ -135,9 +135,10 @@ def executeRequest(self, task):
# multiple times, allowing partial data to be sent.
for value in result:
task.write(value)
except Exception as e:
except:
import sys, pdb
print("%s: %s" % (e.__class__.__name__, e))
print("%s:" % sys.exc_info()[0])
print(sys.exc_info()[1])
zope.security.management.restoreInteraction()
try:
pdb.post_mortem(sys.exc_info()[2])
Expand Down

0 comments on commit 7f94d57

Please sign in to comment.