diff --git a/airtest/core/ios/instruct_cmd.py b/airtest/core/ios/instruct_cmd.py index 704175fc..a0ee8bd3 100644 --- a/airtest/core/ios/instruct_cmd.py +++ b/airtest/core/ios/instruct_cmd.py @@ -83,8 +83,9 @@ def usb_device(self): if usb_dev.info['uuid'] == self.uuid: self._device = wda.usbmux.Device(udid) self._udid = udid + break except: - return None + continue return self._device def tear_down(self):