From 803c374da8f73e7538ed327b328e7be5ed36670c Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Tue, 3 Aug 2021 22:26:35 +0200 Subject: [PATCH] Fix Avvio KoD --- platformcode/launcher.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platformcode/launcher.py b/platformcode/launcher.py index 94439077..1d2ef530 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -175,10 +175,10 @@ def run(item=None): channel = None if os.path.exists(channel_file): - try: - channel = __import__('%s.%s' % (CHANNELS, item.channel), None, None, ['%s.%s' % (CHANNELS, item.channel)]) - except ImportError: - exec("import " + CHANNELS + "." + item.channel + " as channel") + # try: + channel = __import__('%s.%s' % (CHANNELS, item.channel), None, None, ['%s.%s' % (CHANNELS, item.channel)]) + # except ImportError: + # exec("import " + CHANNELS + "." + item.channel + " as channel") logger.info("Running channel %s | %s" % (channel.__name__, channel.__file__))