Skip to content

Commit 5b59552

Browse files
committed
Quick format fix
1 parent 4d66fd4 commit 5b59552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ async def auth_handler(request):
3838

3939
# Ensure user exists in database
4040
user = await db['users'].find_one({ "username": username })
41-
if not user: raise exc.Forbidden("Invalid credentials")
41+
if not user:
42+
raise exc.Forbidden("Invalid credentials")
4243

4344
# Ensure password is correct
4445
try:

0 commit comments

Comments
 (0)