Browse code
...
Ed L authored on 05/03/2012 19:47:08
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -11,7 +11,6 @@ __copyright__ = 'Copyright 2012, Edward Langley' |
11 | 11 |
import imp, os.path |
12 | 12 |
import cgi |
13 | 13 |
import urlparse |
14 |
-import cgitb |
|
15 | 14 |
from twisted.web.resource import Resource |
16 | 15 |
import sys |
17 | 16 |
|
... | ... |
@@ -142,11 +141,10 @@ class OpenIDResource(Resource): |
142 | 141 |
|
143 | 142 |
except (KeyboardInterrupt, SystemExit): |
144 | 143 |
raise |
145 |
- except: |
|
144 |
+ finally: |
|
146 | 145 |
txrequest.setResponseCode(500) |
147 | 146 |
txrequest.setHeader('Content-type', 'text/html') |
148 | 147 |
txrequest.getSession() |
149 |
- return cgitb.html(sys.exc_info(), context=10) |
|
150 | 148 |
return '' |
151 | 149 |
|
152 | 150 |
def doVerify(self, txrequest): |