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()