Reformat code with pre-commit

This commit is contained in:
2022-07-21 13:39:41 +01:00
parent 61f6715b20
commit 7c855e09c0
60 changed files with 547 additions and 278 deletions

View File

@@ -1,15 +1,17 @@
import main
from twisted.internet import reactor
from utils.logging.debug import debug
from utils.logging.log import *
from utils.logging.log import *
import sys
def handler(sig, frame):
log("Received SIGINT, cleaning up")
cleanup()
def cleanup():
debug("Flushing Redis database")
main.r.flushdb()
reactor.stop()
#sys.exit(1)
# sys.exit(1)