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 = []