We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b008d3 + 302fcca commit a3fd30aCopy full SHA for a3fd30a
1 file changed
examples/basics/digital_out.py
@@ -40,7 +40,10 @@
40
41
42
while True:
43
- data = aio.receive(digital.key)
+ try:
44
+ data = aio.receive(digital.key)
45
+ except RequestError as re:
46
+ pass # feed with no data will return 404
47
if int(data.value) == 1:
48
print('received <- ON\n')
49
elif int(data.value) == 0:
0 commit comments