From 009f8864b12a676420d4496354320d65a3a98f8e Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Tue, 5 Sep 2023 13:55:24 +0100 Subject: [PATCH] - fix NULL log file path handling --- src/agent_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent_config.py b/src/agent_config.py index 2b5a039..177324b 100644 --- a/src/agent_config.py +++ b/src/agent_config.py @@ -99,7 +99,7 @@ class AgentConfig: if 'path' in config['log']: path = config['log']['path'] - if len(path) > 0: + if path is not None and len(path) > 0: path = Path(path) if not path.is_absolute(): path = Path(__file__).parent.parent / path @@ -125,4 +125,4 @@ class AgentConfig: if 'task' in config: self.TaskName = config['task'] - \ No newline at end of file +