mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
Ignore bad utf8 data. Fixes #22.
This commit is contained in:
@@ -175,7 +175,7 @@ def parse_death(tag, message):
|
|||||||
|
|
||||||
while adb.poll() is None:
|
while adb.poll() is None:
|
||||||
try:
|
try:
|
||||||
line = adb.stdout.readline().decode('utf-8').strip()
|
line = adb.stdout.readline().decode('utf-8', 'replace').strip()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
break
|
break
|
||||||
if len(line) == 0:
|
if len(line) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user