Don't throw when we fail to find a device.
Instead, set it to None and let the caller handle things. Change-Id: Ic4f27fdb52ebd6bc5b4048e4e688ec7bd2509bfa
This commit is contained in:
@@ -210,6 +210,10 @@ end
|
||||
def main():
|
||||
args = parse_args()
|
||||
device = args.device
|
||||
|
||||
if device is None:
|
||||
sys.exit("ERROR: Failed to find device.")
|
||||
|
||||
props = device.get_props()
|
||||
|
||||
root = os.environ["ANDROID_BUILD_TOP"]
|
||||
|
||||
Reference in New Issue
Block a user