From d35a895df634b5c7a46970182574821468ff6ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Leiva?= Date: Tue, 1 Apr 2025 10:08:47 +0200 Subject: [PATCH] FIX: Added return statement if invalid PATH in cron job creation --- src/adgroupsync/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/adgroupsync/conf.py b/src/adgroupsync/conf.py index 2e73fc7..a053a08 100644 --- a/src/adgroupsync/conf.py +++ b/src/adgroupsync/conf.py @@ -91,6 +91,7 @@ def create_cron_job(cron_job: str, config_file: Path): print( f"No executable found, please add this to your crontab manually: '/path/to/adgroupsync --conf {config_file} >/dev/null 2>&1'" ) + return # Checking if the string is valid if not CronSlices.is_valid(cron_job): -- 2.47.2