Private GIT

Skip to content
Snippets Groups Projects
Commit 60b47949 authored by Luca's avatar Luca
Browse files

Fix tweets encoding to utf-8

parent acff5085
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ class TwitterNotifier:
api = twitter.Api(username, password, access_token_key, access_token_secret)
try:
api.PostUpdate(message)
api.PostUpdate(message.encode('utf8'))
except Exception, e:
logger.log(u"Error Sending Tweet: "+ex(e), logger.ERROR)
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment