From 7c85d5fd312efe60f24016709f5223345110b8ef Mon Sep 17 00:00:00 2001 From: Pranav Rastogi Date: Thu, 10 Aug 2023 11:01:50 -0700 Subject: [PATCH] Update image_controller.py --- openapi_server/controllers/image_controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openapi_server/controllers/image_controller.py b/openapi_server/controllers/image_controller.py index 97d1541..7463c67 100644 --- a/openapi_server/controllers/image_controller.py +++ b/openapi_server/controllers/image_controller.py @@ -24,6 +24,7 @@ def add_image(): # noqa: E501 return InlineResponse200(image_id=image.id) except (SQLAlchemyError, TypeError): models.db.session.rollback() + return Error(400), 400