From 1572068a18eef252abfb801a2aa9a9ba5894219e Mon Sep 17 00:00:00 2001 From: anasty17 Date: Mon, 26 Aug 2024 14:15:19 +0300 Subject: [PATCH] Minor fix Signed-off-by: anasty17 --- bot/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/__init__.py b/bot/__init__.py index 23f038429b9..5aed1583701 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -160,7 +160,8 @@ config_dict = {} if ospath.exists("cfg.zip"): - rmtree("/JDownloader/cfg") + if ospath.exists("/JDownloader/cfg"): + rmtree("/JDownloader/cfg", ignore_errors=True) run(["7z", "x", "cfg.zip", "-o/JDownloader"]) remove("cfg.zip")