Skip to content

Conversation

@carlosjimz87
Copy link

In case the Android project in question has non-English logcat outputs, some encoding errors caused the loop to stop as per image below:

image

This happens because the only exception handled is meant to interrupt the loop intentionally.

So adding a special case for UnicodeDecodeError to keep the running alive could be a work-around.

try:
line = input.readline()
except UnicodeDecodeError:
pass
Copy link
Author

@carlosjimz87 carlosjimz87 Nov 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a continue works better in order to avoid conflicts in the current iteration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant