From 299204998bf76f89878164caa22b2388a62e8f8f Mon Sep 17 00:00:00 2001 From: Blondel MONDESIR Date: Tue, 18 Jun 2024 20:35:30 -0400 Subject: [PATCH] Remove unnecessary close connection --- cps/tasks/download.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cps/tasks/download.py b/cps/tasks/download.py index 611c4f95ec..ecc6ff4db0 100644 --- a/cps/tasks/download.py +++ b/cps/tasks/download.py @@ -124,8 +124,6 @@ def run(self, worker_thread): log.error("Failed to send the requested file to %s", self.original_url) self.message = f"{self.media_url_link} failed to download: {response.status_code} {response.reason}" - conn.close() - except Exception as e: log.error("An error occurred during the subprocess execution: %s", e) self.message = f"{self.media_url_link} failed to download: {self.read_error_from_database()}"