- fix NULL log file path handling
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user