From 49c1164b8bc1f75415716b3552b7bf9d1cb3c15e Mon Sep 17 00:00:00 2001 From: Maveno Date: Thu, 14 Nov 2024 16:59:22 +0100 Subject: [PATCH] ff --- bin/ffx/process.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/ffx/process.py b/bin/ffx/process.py index 6a3d05a..1ec79a1 100644 --- a/bin/ffx/process.py +++ b/bin/ffx/process.py @@ -7,8 +7,11 @@ def executeProcess(commandSequence: List[str], directory: str = None, context: d cpu_percent: 1 bis 99 """ - logger = (context['logger'] if not context is None - else logging.getLogger('FFX').addHandler(logging.NullHandler())) + if context is None: + logger = logging.getLogger('FFX') + logger.addHandler(logging.NullHandler()) + else: + logger = context['logger'] niceSequence = []