diff --git a/pyaci/aci/AciEvent.py b/pyaci/aci/AciEvent.py index 28d99b4..dc34d3e 100644 --- a/pyaci/aci/AciEvent.py +++ b/pyaci/aci/AciEvent.py @@ -163,7 +163,7 @@ def __init__(self,pkt): class HeartbeatMsg(object): def __init__(self, data): if len(data) != 18: - print(str.format("Error: expected 18 bytes, got %s" %(data))) + raise ValueError("Error: expected 18 bytes, got %s" % data) (self.rssi, self.received_at, self.received_at_ms, self.local_clock_version, self.sensor_id, self.epoch_seconds, self.epoch_ms, self.clock_version) = unpack('