Skip to content

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__.py
index 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 Literal
from urllib.parse import urlparse
from django.conf import settings
-from django.db import close_old_connections
from django.http import HttpResponse
from rest_framework.exceptions import UnsupportedMediaType
@@ -298,5 +297,3 @@ async def get(
)
raise UpstreamThumbnailException(f"Failed to render thumbnail. {exc}")
- finally:
- close_old_connections()