diff --git a/villas/controller/components/managers/villas_node.py b/villas/controller/components/managers/villas_node.py index 825f21a..3f25b45 100644 --- a/villas/controller/components/managers/villas_node.py +++ b/villas/controller/components/managers/villas_node.py @@ -54,7 +54,7 @@ def reconcile(self): except Exception as e: self.change_to_error('failed to reconcile', exception=str(e), - args=e.args) + args=str(e.args)) @property def status(self): diff --git a/villas/controller/components/managers/villas_relay.py b/villas/controller/components/managers/villas_relay.py index 6873230..4f3bb40 100644 --- a/villas/controller/components/managers/villas_relay.py +++ b/villas/controller/components/managers/villas_relay.py @@ -93,7 +93,13 @@ def reconcile(self): def status(self): status = super().status - status['status']['villas_relay_version'] = self._status.get('version') + try: + version = self._status.get('version') + status['status']['villas_relay_version'] = version + except Exception as e: + self.change_to_error('failed to get version from VILLASrelay', + exception=str(e), + args=str(e.args)) return status