From fedc901f6ed689c7e76cd7d340e98089ea33140b Mon Sep 17 00:00:00 2001 From: James Date: Sun, 27 May 2018 10:03:08 +0100 Subject: [PATCH] should support < python 3.6 now.. --- traktarr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/traktarr.py b/traktarr.py index 250f618..67edfdd 100755 --- a/traktarr.py +++ b/traktarr.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 import os.path +import signal import sys import time -import signal import click import schedule @@ -706,7 +706,7 @@ def init_notifications(): # Handles exit signals, cancels jobs and exits cleanly 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() exit()