From 7d2c649e835cfccc15c5e4c36a822c2b62f257ff Mon Sep 17 00:00:00 2001 From: Dominik Kozaczko Date: Sat, 1 Oct 2016 12:38:16 +0200 Subject: [PATCH] don't stop polling for more devices as having more than one inserted raises more problems and we need to keep the check --- trezor_agent/factory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trezor_agent/factory.py b/trezor_agent/factory.py index fb97509..50da0f3 100644 --- a/trezor_agent/factory.py +++ b/trezor_agent/factory.py @@ -92,9 +92,8 @@ def load(loaders=None): device = loader() if device: device_list.extend(device) - break # stop polling if we found the device... - if len(device_list) == 1: # ...especialy when we need exactly one + if len(device_list) == 1: return device_list[0] msg = '{:d} devices found'.format(len(device_list))