diff --git a/CveXplore/cli_cmds/tasks_cmds/commands.py b/CveXplore/cli_cmds/tasks_cmds/commands.py index 0f7828c2..98fafd23 100644 --- a/CveXplore/cli_cmds/tasks_cmds/commands.py +++ b/CveXplore/cli_cmds/tasks_cmds/commands.py @@ -202,9 +202,11 @@ def scheduled_cmd(ctx, list, delete, toggle, purge, results): @click.pass_context def scheduled_cmd(ctx, number, slug, interval, crontab): if interval: - click.echo(ctx.obj["data_source"].task_handler.create_task_by_number( - task_number=number, task_slug=slug, task_interval=interval - )) + click.echo( + ctx.obj["data_source"].task_handler.create_task_by_number( + task_number=number, task_slug=slug, task_interval=interval + ) + ) elif crontab: the_crontab = { @@ -222,9 +224,11 @@ def scheduled_cmd(ctx, number, slug, interval, crontab): the_crontab[list(the_crontab.keys())[i]] = each i += 1 - click.echo(ctx.obj["data_source"].task_handler.create_task_by_number( - task_number=number, task_slug=slug, task_crontab=the_crontab - )) + click.echo( + ctx.obj["data_source"].task_handler.create_task_by_number( + task_number=number, task_slug=slug, task_crontab=the_crontab + ) + ) except Exception as err: click.echo( f"Could not insert crontab; error: {err}",