From d525aec43a682d149a82f18a4c322e6cad5f16da Mon Sep 17 00:00:00 2001 From: John Vines <123058+ohshazbot@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:40:02 -0400 Subject: [PATCH] Improving exception lines --- BAC0/core/devices/Device.py | 2 +- BAC0/core/devices/Points.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BAC0/core/devices/Device.py b/BAC0/core/devices/Device.py index 4b7c12af..e8bfb93f 100755 --- a/BAC0/core/devices/Device.py +++ b/BAC0/core/devices/Device.py @@ -785,7 +785,7 @@ def update_bacnet_properties(self): self.properties.bacnet_properties[prop] = v except Exception as e: - raise Exception("Problem reading : {} | {}".format(self.properties.name, e)) + raise Exception("Problem reading device_id {}: all | {}".format(self.properties.device_id, e)) def _bacnet_properties(self, update=False): if not self.properties.bacnet_properties or update: diff --git a/BAC0/core/devices/Points.py b/BAC0/core/devices/Points.py index b9ef73f4..d943c58b 100644 --- a/BAC0/core/devices/Points.py +++ b/BAC0/core/devices/Points.py @@ -218,7 +218,7 @@ def update_bacnet_properties(self): self.properties.bacnet_properties[prop] = v except Exception as e: - raise Exception("Problem reading {} {}-{}: {} | {}".format(self.properties.device, self.properties.type, self.properties.address, self.properties.name, e), e) + raise Exception("Problem reading {} {}-{}: {} | {}".format(self.properties.device.properties.device_id, self.properties.type, self.properties.address, self.properties.name, e), e) @property def bacnet_properties(self):