Skip to content

Commit 80c09e8

Browse files
committed
Now thros exception if no message recieved
1 parent 6eef1f1 commit 80c09e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plantower/plantower.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ def read(self, perform_flush=True):
133133
self._verify(recv) # verify the checksum
134134
return PlantowerReading(recv) # convert to reading object
135135
#If the character isn't what we are expecting loop until timeout
136+
raise PlantowerException("No message recieved")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="plantower",
8-
version="0.0.2",
8+
version="0.0.3",
99
author="Philip Basford",
1010
author_email="[email protected]",
1111
description="An interface for plantower particulate matter sensors",

0 commit comments

Comments
 (0)