Skip to content

Commit

Permalink
Remove "account" bug in Middleware
Browse files Browse the repository at this point in the history
Apparently a bug introduced, raising an exception when "account" is in the path most probably won't let your login/logout urls work.
  • Loading branch information
sromero84 committed Oct 18, 2014
1 parent 2295400 commit 37651d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions djstripe/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ def process_request(self, request):
if "({0})".format(match.app_name) in EXEMPT:
return

if "account" in request.path:
raise Exception(match)

if "[{0}]".format(match.namespace) in EXEMPT:
return

Expand All @@ -82,4 +79,4 @@ def process_request(self, request):

# TODO get this working in tests
# if request.user.is_anonymous():
# raise ImproperlyConfigured
# raise ImproperlyConfigured

0 comments on commit 37651d8

Please sign in to comment.