From bc5b43df30cabf4682618968e1cd05cea2f06967 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Fri, 24 Nov 2017 16:25:45 +0000 Subject: [PATCH] Utils/Android: Fix missing space in check Logcat entries are split on a ':' followed by a space so ensure this is present in the line instead of just a ':'. Some devices have entires without the trailing space causing an error. --- wa/utils/android.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wa/utils/android.py b/wa/utils/android.py index 454772c3..9a0c4c49 100644 --- a/wa/utils/android.py +++ b/wa/utils/android.py @@ -44,7 +44,7 @@ class LogcatParser(object): def parse_line(self, line): line = line.strip() - if not line or line.startswith('-') or ':' not in line: + if not line or line.startswith('-') or ': ' not in line: return None metadata, message = line.split(': ', 1)