z411 / trackma

Open multi-site list manager for Unix-like systems. (ex-wMAL)
https://z411.github.io/trackma
GNU General Public License v3.0
771 stars 82 forks source link

Encoding exception while processing queue #70

Closed SleepyMan closed 9 years ago

SleepyMan commented 9 years ago

Just as I was updating some of the eps that I lost due to another truncated anime.list file, I noticed this exception. I've included a lot of things to see if there is any useful info.

http://pastebin.com/vJ9GHiWU

The really relevant part is this:

File "/usr/lib/python2.7/site-packages/wmal/ui/qtui.py", line 287, in status print message UnicodeEncodeError: 'ascii' codec can't encode character u'\u2606' in position 27: ordinal not in range(128)

It appears that this exception happens while saving/processing the queue. I'm not sure since the logs don't mention any timestamp. Sometimes I notice there are some episodes that I am 100% sure that I've watched it while being online, but when I check, they are not updated. I can't recall if I've seen or not the notification, but if it did and it didn't update correctly because of a bug, that would be pretty major. Then again, this might be a pretty harmless exception.

Edit: The formatting here is not good, If there is a sort of code tag, then I could use that, but for now, it's on pastebin.

Edit2: Wouldn't from future import unicode_literals solve these encoding issues? And it might make it more compatible to python3.

z411 commented 9 years ago

It is harmless, but ugly still. Which show were you updating?

Wouldn't from future import unicode_literals solve these encoding issues? I've thought of doing so, but so far libmal is the only one causing this since it alternates between byte strings and unicode objects.

SleepyMan commented 9 years ago

Many shows, Mahouka to 25, SAO2 to 11, and some others.

z411 commented 9 years ago

Fixed.