Commit 7385519f authored by Mindiell's avatar Mindiell

Ajout d'un message d'erreur lorsque le tweet plante

parent 46221f03
...@@ -174,10 +174,9 @@ def tweet(message): ...@@ -174,10 +174,9 @@ def tweet(message):
twitter = Twitter(auth=auth) twitter = Twitter(auth=auth)
try: try:
Utils.debug("Tweeting: %s" % message) Utils.debug("Tweeting: %s" % message)
result = twitter.statuses.update(status=message) twitter.statuses.update(status=message)
Utils.debug("Result: %s" % result) except Exception as e:
except Exception: Utils.error("Erreur lors du tweet : " + str(e))
Utils.error("Erreur lors du tweet")
class Wantzel(object): class Wantzel(object):
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