Commit d55863dd by Bertrand Marron

Fix pep8 errors

parent 1e29f258
......@@ -16,6 +16,7 @@ from . import pipeline
log = logging.getLogger(__file__)
class ExceptionMiddleware(SocialAuthExceptionMiddleware):
"""Custom middleware that handles conditional redirection."""
......
......@@ -37,5 +37,7 @@ class PortalOAuth2(BaseOAuth2):
def process_error(self, data):
super(PortalOAuth2, self).process_error(data)
if data.get('error_code'):
raise AuthCanceled(self, data.get('error_message') or
data.get('error_code'))
raise AuthCanceled(
self,
data.get('error_message') or data.get('error_code')
)
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