Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
  • Loading branch information
jairomr authored Nov 22, 2024
1 parent 38bc95b commit 7ed7a45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def gee_credentials(private_key_file):

@app.exception_handler(StarletteHTTPException)
async def http_exception_handler(request, exc):
start_code = str(exc.status_code)
start_code = exc.status_code
loggger.error(str(exc.detail))
if request.url.path.split('/')[1] == 'api':
try:
return JSONResponse(
Expand Down

0 comments on commit 7ed7a45

Please sign in to comment.