Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Revert "Close old db connections after getting thumbnails (#5335)" (#5356)
Krystle Salazar820f246affe6
diff --git a/api/api/utils/image_proxy/__init__.py b/api/api/utils/image_proxy/__init__.pyindex 14fada4ee..d2b32075c 100644--- a/api/api/utils/image_proxy/__init__.py+++ b/api/api/utils/image_proxy/__init__.py@@ -3,7 +3,6 @@ from typing import Literalfrom urllib.parse import urlparsefrom django.conf import settings-from django.db import close_old_connectionsfrom django.http import HttpResponsefrom rest_framework.exceptions import UnsupportedMediaType@@ -298,5 +297,3 @@ async def get()raise UpstreamThumbnailException(f"Failed to render thumbnail. {exc}")- finally:- close_old_connections()