Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Catch runtime error from releasing lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 9, 2023
1 parent 07f2ad6 commit a4c57f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.0.97"
__version__ = "5.0.98"
2 changes: 1 addition & 1 deletion cyberdrop_dl/managers/download_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def release_lock(self, filename: str) -> None:
"""Releases the file lock"""
try:
self._locked_files[filename].release()
except KeyError:
except (KeyError, RuntimeError):
pass

class DownloadManager:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.0.97"
version = "5.0.98"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit a4c57f0

Please sign in to comment.