test_logcatd_android.py: catch unicode decode error

This commit is contained in:
Willem Melching
2022-01-17 11:33:26 +01:00
parent d5bdf1e951
commit fe0f9aaa4f
@@ -34,7 +34,11 @@ class TestLogcatdAndroid(unittest.TestCase):
self.assertTrue(m.valid)
self.assertLess(time.monotonic() - (m.logMonoTime / 1e9), 30)
recv_msg = m.androidLog.message.strip()
try:
recv_msg = m.androidLog.message.strip()
except UnicodeDecodeError:
continue
if recv_msg not in sent_msgs:
continue