From f2bdf24e899febca315b70ade673b27a658472fc Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 18 Jan 2017 17:36:21 -0600 Subject: [PATCH] minor bug fix --- src/api/index.py | 4 ++-- src/utils/workers.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/index.py b/src/api/index.py index b2ef2fc..4e32b65 100644 --- a/src/api/index.py +++ b/src/api/index.py @@ -97,7 +97,7 @@ def procs(id): @app.route('/sandbox') def sandbox(): global CONFIG - print CONFIG['monitor'] + if 'sandbox' in CONFIG['monitor']: #handler = HANDLERS['sandbox']['class'] #conf = HANDLERS['sandbox']['config'] @@ -110,7 +110,7 @@ def sandbox(): handler.init(conf[id]) r.append (dict(handler.composite(),**{"label":id})) else: - print 'Oops' + r = [] diff --git a/src/utils/workers.py b/src/utils/workers.py index 7f4a6dc..706ee83 100644 --- a/src/utils/workers.py +++ b/src/utils/workers.py @@ -138,7 +138,7 @@ class ThreadManager: @staticmethod def stop(): for id in ThreadManager.Pool : - thread = Pool[id] + thread = ThreadManager.Pool[id] thread.stop() @staticmethod def status():