From 1631073c61fd76163d27f42d5eb96e45f73583eb Mon Sep 17 00:00:00 2001 From: Artem Morozov Date: Mon, 16 Oct 2023 18:49:00 +0300 Subject: [PATCH] Fix arguments in exceptions. --- print_service/routes/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print_service/routes/file.py b/print_service/routes/file.py index d8c9b1f..5205e0f 100644 --- a/print_service/routes/file.py +++ b/print_service/routes/file.py @@ -179,7 +179,7 @@ async def upload_file( await file.close() raise PINNotFound(pin) if file.content_type not in settings.CONTENT_TYPES: - raise InvalidType() + raise InvalidType(file.content_type) path = abspath(settings.STATIC_FOLDER) + '/' + file_model.file if exists(path): await file.close()