mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[downloader] Check if resume file actually exists before trying to delete it
This commit is contained in:
parent
0b6824ba58
commit
be8e0169d4
|
@ -602,6 +602,7 @@ class DLManager(Process):
|
|||
self.log.warning(f'Thread did not terminate! {repr(t)}')
|
||||
|
||||
# clean up resume file
|
||||
if self.resume_file:
|
||||
try:
|
||||
os.remove(self.resume_file)
|
||||
except OSError as e:
|
||||
|
|
Loading…
Reference in a new issue