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): ...@@ -44,7 +44,7 @@ class UserExists(Exception):
pass pass
class Unauthroized(Exception): class Unauthorized(Exception):
pass pass
...@@ -351,7 +351,7 @@ class Kedifa(object): ...@@ -351,7 +351,7 @@ class Kedifa(object):
), ),
) )
except (caucase.exceptions.CertificateVerificationError, ValueError): except (caucase.exceptions.CertificateVerificationError, ValueError):
raise Unauthroized raise Unauthorized
def __call__(self, environ, start_response): def __call__(self, environ, start_response):
headers_text_plain = [('Content-Type', 'text/plain')] headers_text_plain = [('Content-Type', 'text/plain')]
...@@ -420,7 +420,7 @@ class Kedifa(object): ...@@ -420,7 +420,7 @@ class Kedifa(object):
# SSL-auth # SSL-auth
try: try:
self.SSLAuth(environ) self.SSLAuth(environ)
except Unauthroized: except Unauthorized:
headers = headers_text_plain + [('WWW-Authenticate', 'transport')] headers = headers_text_plain + [('WWW-Authenticate', 'transport')]
start_response('401 Unauthorized', headers) start_response('401 Unauthorized', headers)
return ('',) return ('',)
...@@ -438,7 +438,7 @@ class Kedifa(object): ...@@ -438,7 +438,7 @@ class Kedifa(object):
# SSL-auth # SSL-auth
try: try:
self.SSLAuth(environ) self.SSLAuth(environ)
except Unauthroized: except Unauthorized:
headers = headers_text_plain + [('WWW-Authenticate', 'transport')] headers = headers_text_plain + [('WWW-Authenticate', 'transport')]
start_response('401 Unauthorized', headers) start_response('401 Unauthorized', headers)
return ('',) return ('',)
...@@ -462,7 +462,7 @@ class Kedifa(object): ...@@ -462,7 +462,7 @@ class Kedifa(object):
# SSL-auth # SSL-auth
try: try:
self.SSLAuth(environ) self.SSLAuth(environ)
except Unauthroized: except Unauthorized:
headers = headers_text_plain + [('WWW-Authenticate', 'transport')] headers = headers_text_plain + [('WWW-Authenticate', 'transport')]
start_response('401 Unauthorized', headers) start_response('401 Unauthorized', headers)
return ('',) 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