From f3edb8b158775c065a8fcc5bfa6e1e796a09c828 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Tue, 17 Oct 2023 16:53:24 -0400 Subject: [PATCH] Fixing git warning --- gdrive/analytics_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdrive/analytics_api.py b/gdrive/analytics_api.py index 9c8ccf2..95c36ee 100644 --- a/gdrive/analytics_api.py +++ b/gdrive/analytics_api.py @@ -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), )