Skip to content

Commit

Permalink
fix: handle successful run
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Feb 9, 2024
1 parent 8069dcf commit ce12c83
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

from apscheduler.schedulers.background import BlockingScheduler
from apscheduler.triggers.cron import CronTrigger
import click

from todoist_scheduler import cli


def job():
cli()
"""
this is me being lazy, I don't want to have to define another entrypoint, so I'm just catching the successful outcome
"""
try:
cli()
except click.exceptions.Exit as e:
if e.exit_code != 0:
raise


def cron():
Expand Down

0 comments on commit ce12c83

Please sign in to comment.