Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore incorrectly truncated utf-8 output from rclone #109

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

LXY1226
Copy link
Contributor

@LXY1226 LXY1226 commented Sep 26, 2023

rclone will truncate filename in it's progress report which is read in cloud_drive.py#L123
it will unfortunately cut it between a valid wide utf-8 char then python will panic with:

<class 'UnicodeDecodeError'> 'utf-8' codec can't decode bytes in postion xx-xx: invalid continuation byte

So... just make it replace bad chars since it does not contain info that script needs(just check if it successfully finished)

@tangyoha tangyoha merged commit cfd13d8 into tangyoha:master Sep 26, 2023
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.

2 participants