From add966bc62785e47aa979ca90d1f0e62ae7a7fc7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 24 Nov 2024 05:32:51 +0800 Subject: [PATCH] Update crontab.py --- web/utils/crontab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/utils/crontab.py b/web/utils/crontab.py index f61dc41ff..e308b7a5e 100644 --- a/web/utils/crontab.py +++ b/web/utils/crontab.py @@ -258,9 +258,10 @@ class crontab(object): file = '' for i in cron_file: - if os.path.exists(file): + if os.path.exists(i): file = i + if file == '': return False