mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
test_logcatd_android.py: catch unicode decode error
old-commit-hash: fe0f9aaa4f7ceba345c30819245f62be6004d535
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user