Skip to content

Instantly share code, notes, and snippets.

@IvanTurgenev
IvanTurgenev / ERROR
Last active Jul 31, 2017
Line 45 ERROR UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 16: ordinal not in range(128), has something to do with add
View ERROR
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 804, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 757, in run
self.__target(*self.__args, **self.__kwargs)
File "redditbot.py", line 48, in poststream # GIST HAS DIFFERENT NUMBER OF LINES
subredditra.contributor.add(author)
File "/home/kenmr/.local/lib/python2.7/site-packages/praw/models/reddit/subreddit.py", line 1362, in add
self.subreddit._reddit.post(url, data=data)
You can’t perform that action at this time.