Skip to content

Commit 5aa3665

Browse files
authored
Merge pull request #2893 from fedspendingtransparency/mod/dev-15346-is-local-fix
DEV-15346: is local fix
2 parents 2d7fa42 + 6f690f0 commit 5aa3665

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dataactbroker/routes/login_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def add_login_routes(app, is_local, bcrypt):
1111
@app.route("/v1/login/", methods=["POST"])
1212
def login():
1313
if not is_local:
14-
return JsonResponse.error("Login route can only be used locally.", StatusCode.CLIENT_ERROR)
14+
return JsonResponse.error(Exception("Login route can only be used locally."), StatusCode.CLIENT_ERROR)
1515
account_manager = AccountHandler(request, bcrypt=bcrypt)
1616
return account_manager.login(session)
1717

0 commit comments

Comments
 (0)