Merge pull request #430 from pikers/catch_notification_daemon_error

Catch notification daemon error
cz_post_ftx
goodboy 2022-12-04 17:06:12 -05:00 committed by GitHub
commit 5915cf3acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -94,5 +94,11 @@ async def notify_from_ems_status_msg(
# pack in a broker independent way? # pack in a broker independent way?
f"'{msg.pformat()}'", f"'{msg.pformat()}'",
], ],
capture_stdout=True,
capture_stderr=True,
check=False,
) )
if result.returncode != 0:
log.warn(f'No notification daemon installed stderr: {result.stderr}')
log.runtime(result) log.runtime(result)