File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ def _verify_firebase_id_token(token: str) -> FirebaseIDTokenData:
5151security = HTTPBearer (auto_error = False )
5252
5353
54-
5554async 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 )
Original file line number Diff line number Diff 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 } \n Traceback:\n { traceback .format_exc ()} " )
368+ logging .error (
369+ f"Error getting activity stats: { e } \n Traceback:\n { traceback .format_exc ()} "
370+ )
369371 raise HTTPException (status_code = 500 , detail = "Internal server error" )
370372
371373 @app .post ("/api/sentient/assist" )
Original file line number Diff line number Diff line change @@ -69,4 +69,4 @@ async def dispatch(
6969 f"error:{ type (e ).__name__ } " ,
7070 ],
7171 )
72- raise
72+ raise
You can’t perform that action at this time.
0 commit comments