- fix NULL log file path handling

This commit is contained in:
Dmytro Bogovych 2023-09-05 13:55:24 +01:00
parent 90c88c2aa4
commit 009f8864b1
1 changed files with 2 additions and 2 deletions

View File

@ -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