diff --git a/backup.py b/backup.py index 38ff08e..15f5379 100644 --- a/backup.py +++ b/backup.py @@ -59,8 +59,8 @@ scheduler.add_job( days=1, args=(args.socket, args.outdir, args.stack, args.services), ) - try: - while True: - time.sleep(20) - except (KeyboardInterrupt, SystemExit): - scheduler.shutdown() +try: + while True: + time.sleep(20) +except (KeyboardInterrupt, SystemExit): + scheduler.shutdown()