diff --git a/drama/routes/oauth.py b/drama/routes/oauth.py index e60c8b96d..716790cf7 100644 --- a/drama/routes/oauth.py +++ b/drama/routes/oauth.py @@ -218,7 +218,7 @@ def oauth_grant(): return data else: - return {"oauth_error": f"Invalid grant_type `{request.values.get('grant_type',''}`. Expected `code` or `refresh`."}), 400 + return {"oauth_error": f"Invalid grant_type `{request.values.get('grant_type','')}`. Expected `code` or `refresh`."}, 400 @app.post("/api_keys")