Skip to content

Commit

Permalink
Fixing git warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-moore-97 committed Oct 17, 2023
1 parent 7069cc3 commit f3edb8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gdrive/analytics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ async def run_analytics(background_tasks: BackgroundTasks, req: AnalyticsRequest
)

except ValueError as err:
message = str(err)
return responses.JSONResponse(
status_code=422,
content="Failed (invalid date parameters): [%s, %s] %s"
% (req.startDate, req.endDate, err),
% (req.startDate, req.endDate, message),

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
)


Expand Down

0 comments on commit f3edb8b

Please sign in to comment.