Fixed issue when trying to remove non-empty directory when cleaning leftover files after upgrade.

pull/1500/head v0.9.7-beta.12
morpheus65535 3 years ago
parent dd80fec9d4
commit 2cea2d22bf

@ -218,7 +218,7 @@ def update_cleaner(zipfile, bazarr_dir, config_dir):
filepath = os.path.join(bazarr_dir, file) filepath = os.path.join(bazarr_dir, file)
try: try:
if os.path.isdir(filepath): if os.path.isdir(filepath):
shutil.rmtree(filepath, ignore_errors=True) rmtree(filepath, ignore_errors=True)
else: else:
os.remove(filepath) os.remove(filepath)
except: except:

Loading…
Cancel
Save