Commit 46221f03 authored by Mindiell's avatar Mindiell

Ajout d'un debug sur le touittage de la RP

parent 8edbf21a
......@@ -174,9 +174,10 @@ def tweet(message):
twitter = Twitter(auth=auth)
try:
Utils.debug("Tweeting: %s" % message)
twitter.statuses.update(status=message)
result = twitter.statuses.update(status=message)
Utils.debug("Result: %s" % result)
except Exception:
pass
Utils.error("Erreur lors du tweet")
class Wantzel(object):
......@@ -827,7 +828,7 @@ class Wantzel(object):
if len(title) + min(len(link),23) > 135:
# What is the number of chars we need to remove
excess = len(title) + min(len(link),23) - 135
title = ''.join([title[:-(excess + 4)], ' ...'])
title = ''.join([title[:-(excess + 2)], ' …'])
tweet(messages["tweet_rp_%s" % language] % (
title,
link
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment