Fix restart if user has not mirrored anything

This commit is contained in:
Hafitz Setya 2021-02-14 10:52:24 +07:00 committed by GitHub
parent 514b883e64
commit a999fe00c2
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,10 @@ def start_cleanup():
def clean_all():
aria2.remove_all(True)
shutil.rmtree(DOWNLOAD_DIR)
try:
shutil.rmtree(DOWNLOAD_DIR)
except FileNotFoundError:
pass
def exit_clean_up(signal, frame):