From adf675e1f1fc203c2a7a06712a094ca804bf7b01 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Tue, 21 Jan 2020 19:55:09 +0100 Subject: [PATCH] collectd: clarify bluepy import --- collectd/collectd_sem6000.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collectd/collectd_sem6000.py b/collectd/collectd_sem6000.py index 40d2048..397a382 100755 --- a/collectd/collectd_sem6000.py +++ b/collectd/collectd_sem6000.py @@ -7,7 +7,7 @@ import time import collectd from sem6000 import SEMSocket -import bluepy +from bluepy.btle import BTLEDisconnectError instances = [] @@ -75,7 +75,7 @@ def read_func(): collectd.info("sem6000: Connected.") inst['socket'].getStatus() - except (SEMSocket.NotConnectedException, bluepy.btle.BTLEDisconnectError, BrokenPipeError) as e: + except (SEMSocket.NotConnectedException, BTLEDisconnectError, BrokenPipeError) as e: collectd.warning("sem6000: Exception caught: {}".format(e)) collectd.warning("sem6000: Restarting on next cycle...")