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):