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): ...@@ -45,7 +45,7 @@ class UserExists(Exception):
pass pass
class Unauthroized(Exception): class Unauthorized(Exception):
pass pass
...@@ -352,7 +352,7 @@ class Kedifa(object): ...@@ -352,7 +352,7 @@ class Kedifa(object):
crl_list=self.crl_list, crl_list=self.crl_list,
) )
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')]
...@@ -421,7 +421,7 @@ class Kedifa(object): ...@@ -421,7 +421,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 ('',)
...@@ -439,7 +439,7 @@ class Kedifa(object): ...@@ -439,7 +439,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 ('',)
...@@ -463,7 +463,7 @@ class Kedifa(object): ...@@ -463,7 +463,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