Implement debug flag

This commit is contained in:
Mark Veidemanis 2022-05-02 16:32:01 +01:00
parent ea7584703c
commit 8093835857
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from klein import Klein
# Other library imports
from json import dumps
from signal import signal, SIGINT
from sys import argv
# Project imports
from settings import settings
@ -90,6 +91,8 @@ class WebApp(util.Base):
if __name__ == "__main__":
if "--debug" in argv:
util.debug = True
init_map = {
"ux": ux.UX(),
"markets": Markets(),