F7U12-subreddit/reddit-hacks — comment on commit dbe654c3b11202e7a43a9ea802ddd28f73b4d55c
File:  line 0
By paradox460:

Basically, here is what goes wrong.

`client.flair_list` returns a generator of flair from a subreddit. This generator is run through a foreach loop into object `r`. `r` is a tuple, containing a single row of a subreddit's user flair, with user, text, and css as elements. Unfortunately, there is a high chance that `text` will have unicode, such as ಠ_ಠ. Its not as simple as doing `r[0].encode('utf-8')`, unfortunately, because when an element is blank (such as CSS classes), it gets type None, which `encode` chokes on.

Probably needs some logic up in its business, but i'm too tired to do it