- fix NULL log file path handling
This commit is contained in:
parent
90c88c2aa4
commit
009f8864b1
|
|
@ -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']
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue