From d527842f55e40496fa04b10e7a833fafacef64a2 Mon Sep 17 00:00:00 2001 From: Domenico DiNicola Date: Mon, 20 May 2019 16:26:32 -0400 Subject: [PATCH] hotfix --- .circleci/config.yml | 1 + src/etools/libraries/social_django/middleware.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1fc151c53..a86a1a30e4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -64,3 +64,4 @@ workflows: - develop - testing - ci-updates + - hotfix diff --git a/src/etools/libraries/social_django/middleware.py b/src/etools/libraries/social_django/middleware.py index 77d5d3dc3b..1e7b0eb6c4 100644 --- a/src/etools/libraries/social_django/middleware.py +++ b/src/etools/libraries/social_django/middleware.py @@ -1,5 +1,4 @@ from django.shortcuts import HttpResponseRedirect -from django.urls import reverse from django.conf import settings from social_core import exceptions as social_exceptions @@ -9,6 +8,6 @@ class SocialAuthExceptionMiddleware(SocialAuthExceptionMiddleware): def process_exception(self, request, exception): if hasattr(social_exceptions, 'AuthCanceled'): - return HttpResponseRedirect(reverse(settings.LOGIN_URL)) + return HttpResponseRedirect(settings.LOGIN_URL) else: raise exception