From 2cea2d22bfb0e050e95ba3c50dba9631210886d0 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 6 Aug 2021 22:11:24 -0400 Subject: [PATCH] Fixed issue when trying to remove non-empty directory when cleaning leftover files after upgrade. --- bazarr/check_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/check_update.py b/bazarr/check_update.py index ca8ff3d85..0c45f0208 100644 --- a/bazarr/check_update.py +++ b/bazarr/check_update.py @@ -218,7 +218,7 @@ def update_cleaner(zipfile, bazarr_dir, config_dir): filepath = os.path.join(bazarr_dir, file) try: if os.path.isdir(filepath): - shutil.rmtree(filepath, ignore_errors=True) + rmtree(filepath, ignore_errors=True) else: os.remove(filepath) except: