should support < python 3.6 now..

pull/29/head
James 7 years ago
parent d60e3054e4
commit 557ffbc36d

@ -1,8 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import os.path import os.path
import signal
import sys import sys
import time import time
import signal
import click import click
import schedule import schedule
@ -706,7 +706,7 @@ def init_notifications():
# Handles exit signals, cancels jobs and exits cleanly # Handles exit signals, cancels jobs and exits cleanly
def exit_handler(signum, frame): def exit_handler(signum, frame):
log.info(f"Received {signal.Signals(signum).name}, canceling jobs and exiting.") log.info("Received %s, canceling jobs and exiting.", signal.Signals(signum).name)
schedule.clear() schedule.clear()
exit() exit()

Loading…
Cancel
Save