Skip to content

Commit

Permalink
fix: Always force remove files when removing download
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Oct 15, 2019
1 parent bea415e commit 7283a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aria2p/api.py
Expand Up @@ -373,7 +373,7 @@ def remove(self, downloads, force=False, files=False):
logger.debug(f"Failed to remove download result {removed_gid}")
logger.opt(exception=True).trace(error2)
if files and result[-1]:
self.remove_files([download], force=force)
self.remove_files([download], force=True)

return result

Expand Down

0 comments on commit 7283a15

Please sign in to comment.