Update doorbell.py

This commit is contained in:
2020-09-18 04:28:41 +00:00
parent d5afefd458
commit 2402831406
+2 -1
View File
@@ -21,7 +21,8 @@ while True:
try:
response = urllib.request.urlopen('http://192.168.178.51/bell/on', timeout=5).read().decode('utf-8')
except Exception:
logging.exception("Could not ring doorbell")
logging.error("Could not ring doorbell")
# logging.exception("Could not ring doorbell")
time.sleep(300)
else:
logging.info(data)