Skip to content

Commit

Permalink
Fix UnicodeEncodeError
Browse files Browse the repository at this point in the history
The strings returned are already (valid?) unicode objects in Python 2 -
don't try to fix them.

At least, this change fixes giedo-sync...
  • Loading branch information
aykevl committed Sep 1, 2017
1 parent 9c3f996 commit 3b3871d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kn/utils/giedo/forum.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def generate_forum_changes(self):
users[str(m.name)] = m
for user, realname in c.fetchall():
user = user.lower()
if realname and six.PY2:
realname = realname.decode('latin1')
if user not in users:
if user == 'guest':
continue
Expand Down

0 comments on commit 3b3871d

Please sign in to comment.