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

@ -93,6 +93,12 @@ async def notify_from_ems_status_msg(
# TODO: add in standard fill/exec info that maybe we # TODO: add in standard fill/exec info that maybe we
# 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,
) )
log.runtime(result) if result.returncode != 0:
log.warn(f'No notification daemon installed stderr: {result.stderr}')
log.runtime(result)