From 2fe31596c0e0f94ff659c8acf2e5919eb3201598 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Tue, 10 Sep 2024 01:06:56 +0200 Subject: [PATCH] [+] Corrected exception handling syntax --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index f391183..1c97743 100644 --- a/app.py +++ b/app.py @@ -162,7 +162,7 @@ def upload(): case 1: return generic_response_maker(http.HTTPStatus.NOT_ACCEPTABLE, "No file(s) were uploaded.") - except FileNotFoundError as e: + except FileNotFoundError: return generic_response_maker(http.HTTPStatus.CONFLICT, "Please launch the server at least once.") except KeyError as e: