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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user