From 8290aed23bbe7d87d5080caf73207a8e73781aff Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sat, 6 Jul 2013 17:30:34 +0200 Subject: [PATCH] avoid empty lines when checking adb serials --- buildozer/targets/android.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index f7d0877..7deaaa3 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -475,6 +475,8 @@ class TargetAndroid(Target): get_stdout=True)[0].splitlines() serials = [] for serial in l: + if not serial: + continue if serial.startswith('*') or serial.startswith('List '): continue serials.append(serial.split()[0])