Commit 8d8ea161 authored by Jérome Perrin's avatar Jérome Perrin

app: typo on Unauthorized exception name

parent 2f00e603
......@@ -44,7 +44,7 @@ class UserExists(Exception):
pass
class Unauthroized(Exception):
class Unauthorized(Exception):
pass
......@@ -351,7 +351,7 @@ class Kedifa(object):
),
)
except (caucase.exceptions.CertificateVerificationError, ValueError):
raise Unauthroized
raise Unauthorized
def __call__(self, environ, start_response):
headers_text_plain = [('Content-Type', 'text/plain')]
......@@ -420,7 +420,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 ('',)
......@@ -438,7 +438,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 ('',)
......@@ -462,7 +462,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