Improved logging mechanism (and a few minor goodies) (#54)

* Improved logging mechanism

* Allow for suppression of any errors regarding failed device updates
This commit is contained in:
Dennis Keitzel
2019-03-03 19:46:38 +01:00
committed by zewelor
parent c6a068f811
commit c9a634870f
14 changed files with 200 additions and 69 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class MiscaleWorker(BaseWorker):
scanner = btle.Scanner().withDelegate(scan_processor)
scanner.scan(5, passive=True)
with timeout(5):
with timeout(5, exception=TimeoutError):
while scan_processor.weight is None:
time.sleep(1)
return scan_processor.weight