changeset 53:d9e712cfd098 tip

STUB: bitsyauth/__init__.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 06 Mar 2014 22:27:26 -0800
parents aabc968611bc
children
files bitsyauth/__init__.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyauth/__init__.py
+++ b/bitsyauth/__init__.py
@@ -86,17 +86,23 @@ class BitsyAuthInnerWare(object):
 
         # URLs intrinsic to BitsyAuth
         if self.request.path_info == '/logout':
             response = self.redirect()
             return response(self.request.environ, start_response)
 
         if self.request.path_info in self.url_lookup():
             response = self.make_response()
-            return response(self.request.environ, start_response)
+            try:
+                res = response(self.request.environ, start_response)
+                return res
+            except Exception as e:
+                print (e)
+                raise
+                import pdb; pdb.set_trace()
 
         # digest auth
         if 'Authorization' in self.request.headers.keys():
             return self.wrapped_app(self.request.environ, start_response)
 
         response = Request(orig_environ).get_response(self.app)
 
         # respond to 401s