Commit 03adae28 authored by Aurel's avatar Aurel

CookieCrumbler: fix indentation of patching and bare execeptions

parent fe3a9b32
...@@ -214,15 +214,15 @@ class ResponseCleanup: ...@@ -214,15 +214,15 @@ class ResponseCleanup:
# they are, even to log them. # they are, even to log them.
try: try:
del self.resp.unauthorized del self.resp.unauthorized
except: except Exception:
pass pass
try: try:
del self.resp._unauthorized del self.resp._unauthorized
except: except Exception:
pass pass
try: try:
del self.resp del self.resp
except: except Exception:
pass pass
...@@ -272,9 +272,9 @@ if 1: ...@@ -272,9 +272,9 @@ if 1:
# No errors of any sort may propagate, and we don't care *what* # No errors of any sort may propagate, and we don't care *what*
# they are, even to log them. # they are, even to log them.
try: del resp.unauthorized try: del resp.unauthorized
except: pass except Exception: pass
try: del resp._unauthorized try: del resp._unauthorized
except: pass except Exception: pass
return resp return resp
security.declarePrivate('unauthorized') security.declarePrivate('unauthorized')
...@@ -343,11 +343,11 @@ if 1: ...@@ -343,11 +343,11 @@ if 1:
return url return url
return None return None
CookieCrumbler.__call__ = __call__ CookieCrumbler.__call__ = __call__
CookieCrumbler._cleanupResponse = _cleanupResponse CookieCrumbler._cleanupResponse = _cleanupResponse
CookieCrumbler.unauthorized = unauthorized CookieCrumbler.unauthorized = unauthorized
CookieCrumbler._unauthorized = _unauthorized CookieCrumbler._unauthorized = _unauthorized
CookieCrumbler.getUnauthorizedURL = getUnauthorizedURL CookieCrumbler.getUnauthorizedURL = getUnauthorizedURL
### ###
......
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