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