Skip to content

Commit

Permalink
Revert "Close old db connections after getting thumbnails (#5335)" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal authored Jan 29, 2025
1 parent 85f6407 commit 820f246
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/api/utils/image_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
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

Expand Down Expand Up @@ -298,5 +297,3 @@ async def get(
)

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

0 comments on commit 820f246

Please # to comment.