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
This reverts commit f41f20d.
  • Loading branch information
krysal committed Jan 28, 2025
1 parent e8a1fb9 commit 4c691d6
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 4c691d6

Please # to comment.