Skip to content

Commit

Permalink
Remove unnecessary close connection
Browse files Browse the repository at this point in the history
  • Loading branch information
deldesir authored Jun 19, 2024
1 parent 0f9d435 commit 2992049
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cps/tasks/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

This comment has been minimized.

Copy link
@codewiz

codewiz Jun 19, 2024

So sorry, I gave you bad advice. See my other comment.


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()}"
Expand Down

0 comments on commit 2992049

Please sign in to comment.