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 +