rndusr / stig

TUI and CLI for the BitTorrent client Transmission
GNU General Public License v3.0
554 stars 24 forks source link

fix: catch malformed UTF-8 from server #242

Closed rsekman closed 8 months ago

rsekman commented 8 months ago

I've run into this a couple of times. I suspect it's an issue with transmission. E.g. transmission fails to sanitise file names that are not valid UTF-8 -- there's an upstream crash report related to that. In any case, malformed UTF-8 causes a crash because response.json() throws and UnicodeDecodeError is not caught.

rndusr commented 8 months ago

Thanks again.