Skip to content

Commit

Permalink
Improving exception lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ohshazbot committed Oct 1, 2024
1 parent 40e246e commit d525aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BAC0/core/devices/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion BAC0/core/devices/Points.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d525aec

Please sign in to comment.