Ignore bad utf8 data. Fixes #22.

This commit is contained in:
Eric Butler
2013-07-15 11:27:20 -07:00
parent cc3857b8af
commit 2ae38a1955
+1 -1
View File
@@ -175,7 +175,7 @@ def parse_death(tag, message):
while adb.poll() is None:
try:
line = adb.stdout.readline().decode('utf-8').strip()
line = adb.stdout.readline().decode('utf-8', 'replace').strip()
except KeyboardInterrupt:
break
if len(line) == 0: