Skip to content

Commit 820f246

Browse files
authored
Revert "Close old db connections after getting thumbnails (#5335)" (#5356)
1 parent 85f6407 commit 820f246

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

api/api/utils/image_proxy/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from urllib.parse import urlparse
44

55
from django.conf import settings
6-
from django.db import close_old_connections
76
from django.http import HttpResponse
87
from rest_framework.exceptions import UnsupportedMediaType
98

@@ -298,5 +297,3 @@ async def get(
298297
)
299298

300299
raise UpstreamThumbnailException(f"Failed to render thumbnail. {exc}")
301-
finally:
302-
close_old_connections()

0 commit comments

Comments
 (0)