summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-api/opendc/auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-api/opendc/auth.py')
-rw-r--r--opendc-web/opendc-web-api/opendc/auth.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/opendc-web/opendc-web-api/opendc/auth.py b/opendc-web/opendc-web-api/opendc/auth.py
index 6db06fb1..d5da6ee5 100644
--- a/opendc-web/opendc-web-api/opendc/auth.py
+++ b/opendc-web/opendc-web-api/opendc/auth.py
@@ -40,10 +40,7 @@ def get_token():
parts = auth.split()
if parts[0].lower() != "bearer":
- raise AuthError({
- "code": "invalid_header",
- "description": "Authorization header must start with Bearer"
- }, 401)
+ raise AuthError({"code": "invalid_header", "description": "Authorization header must start with Bearer"}, 401)
if len(parts) == 1:
raise AuthError({"code": "invalid_header", "description": "Token not found"}, 401)
if len(parts) > 2: