Skip to content

Instantly share code, notes, and snippets.

@facuescobar
Created February 4, 2016 20:17
Show Gist options
  • Save facuescobar/0fe246b60bf822dd70f4 to your computer and use it in GitHub Desktop.
Save facuescobar/0fe246b60bf822dd70f4 to your computer and use it in GitHub Desktop.
diff --git a/rebelmouse/middleware.py b/rebelmouse/middleware.py
index 9367d90..b95dad2 100644
--- a/rebelmouse/middleware.py
+++ b/rebelmouse/middleware.py
@@ -277,8 +277,7 @@ class WhitelabelRedirect(object):
class HTTPStatusCodeMiddleware(object):
def process_view(self, request, *args):
- if 'http_status_code_500' in request.COOKIES:
- raise Exception('Test exception')
+ raise Exception('Test exception')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment