forked from sqozz/sem6000
collectd: clarify bluepy import
This commit is contained in:
parent
341b6e84b6
commit
adf675e1f1
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import time
|
||||||
import collectd
|
import collectd
|
||||||
|
|
||||||
from sem6000 import SEMSocket
|
from sem6000 import SEMSocket
|
||||||
import bluepy
|
from bluepy.btle import BTLEDisconnectError
|
||||||
|
|
||||||
instances = []
|
instances = []
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ def read_func():
|
||||||
collectd.info("sem6000: Connected.")
|
collectd.info("sem6000: Connected.")
|
||||||
|
|
||||||
inst['socket'].getStatus()
|
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: Exception caught: {}".format(e))
|
||||||
collectd.warning("sem6000: Restarting on next cycle...")
|
collectd.warning("sem6000: Restarting on next cycle...")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue