Skip to content

Commit 5c383b4

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
format
1 parent 909a3f8 commit 5c383b4

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

server/auth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def _verify_firebase_id_token(token: str) -> FirebaseIDTokenData:
5151
security = HTTPBearer(auto_error=False)
5252

5353

54-
5554
async def get_current_user(
5655
request: Request,
5756
credentials: Optional[HTTPAuthorizationCredentials] = Depends(security),
@@ -73,5 +72,7 @@ async def protected_route(current_user: FirebaseIDTokenData = Depends(get_curren
7372
return FirebaseIDTokenData(uid="test_user")
7473

7574
if not credentials:
76-
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="Not authenticated")
75+
raise HTTPException(
76+
status_code=status.HTTP_403_FORBIDDEN, detail="Not authenticated"
77+
)
7778
return _verify_firebase_id_token(credentials.credentials)

server/fastapi_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ async def get_activity_stats(
365365
stats = await activity_tracker.get_activity_stats(address)
366366
return stats
367367
except Exception as e:
368-
logging.error(f"Error getting activity stats: {e}\nTraceback:\n{traceback.format_exc()}")
368+
logging.error(
369+
f"Error getting activity stats: {e}\nTraceback:\n{traceback.format_exc()}"
370+
)
369371
raise HTTPException(status_code=500, detail="Internal server error")
370372

371373
@app.post("/api/sentient/assist")

server/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ async def dispatch(
6969
f"error:{type(e).__name__}",
7070
],
7171
)
72-
raise
72+
raise

0 commit comments

Comments
 (0)