From 8093835857a1c6ba59714e63a1ac0bb1e9cb77f7 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 2 May 2022 16:32:01 +0100 Subject: [PATCH] Implement debug flag --- handler/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/app.py b/handler/app.py index ef1b944..cc810fc 100755 --- a/handler/app.py +++ b/handler/app.py @@ -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(),