From 4ba3d843665d622cd58fb90537013172f59b8ed0 Mon Sep 17 00:00:00 2001 From: samueltwum1 <samueltwum1@gmail.com> Date: Wed, 27 Oct 2021 08:18:05 +0200 Subject: [PATCH] SAR-276 Handle errors from device --- src/ska_tango_base/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ska_tango_base/utils.py b/src/ska_tango_base/utils.py index c754579e..c020787c 100644 --- a/src/ska_tango_base/utils.py +++ b/src/ska_tango_base/utils.py @@ -630,6 +630,10 @@ class LongRunningDeviceInterface: - If so, fire the callback - Clean up """ + if ev.err: + self._logger.error("Event system DevError(s) occured: %s", str(ev.errors)) + return + if ev.attr_value and ev.attr_value.name == "longrunningcommandresult": if ev.attr_value.value: # push change event to new attribute for all tango devices -- GitLab