Commit 58b7e2d9 authored by Jérome Perrin's avatar Jérome Perrin Committed by Łukasz Nowak

app: typo on Unauthorized exception name

parent 2dbbf2d7
......@@ -45,7 +45,7 @@ class UserExists(Exception):
pass
class Unauthroized(Exception):
class Unauthorized(Exception):
pass
......@@ -352,7 +352,7 @@ class Kedifa(object):
crl_list=self.crl_list,
)
except (caucase.exceptions.CertificateVerificationError, ValueError):
raise Unauthroized
raise Unauthorized
def __call__(self, environ, start_response):
headers_text_plain = [('Content-Type', 'text/plain')]
......@@ -421,7 +421,7 @@ class Kedifa(object):
# SSL-auth
try:
self.SSLAuth(environ)
except Unauthroized:
except Unauthorized:
headers = headers_text_plain + [('WWW-Authenticate', 'transport')]
start_response('401 Unauthorized', headers)
return ('',)
......@@ -439,7 +439,7 @@ class Kedifa(object):
# SSL-auth
try:
self.SSLAuth(environ)
except Unauthroized:
except Unauthorized:
headers = headers_text_plain + [('WWW-Authenticate', 'transport')]
start_response('401 Unauthorized', headers)
return ('',)
......@@ -463,7 +463,7 @@ class Kedifa(object):
# SSL-auth
try:
self.SSLAuth(environ)
except Unauthroized:
except Unauthorized:
headers = headers_text_plain + [('WWW-Authenticate', 'transport')]
start_response('401 Unauthorized', headers)
return ('',)
......
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