Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 authored Mar 2, 2024
1 parent acbe732 commit ff3e7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from fastapi.security import HTTPBasic, HTTPBasicCredentials
import os

from api_renpho import RenphoWeight
from .api_renpho import RenphoWeight

# Initialize FastAPI and Jinja2
app = FastAPI(docs_url="/docs", redoc_url=None)
Expand Down Expand Up @@ -148,4 +148,4 @@ async def request_user(request: Request, renpho: RenphoWeight = Depends(get_curr
request_user = await renpho.request_user()
return {"status": "success", "message": "Fetched request user.", "data": request_user}
except Exception as e:
return {"status": "error", "message": str(e)}
return {"status": "error", "message": str(e)}

0 comments on commit ff3e7ff

Please sign in to comment.