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):
twitter = Twitter(auth=auth)
try:
Utils.debug("Tweeting: %s" % message)
result = twitter.statuses.update(status=message)
Utils.debug("Result: %s" % result)
except Exception:
Utils.error("Erreur lors du tweet")
twitter.statuses.update(status=message)
except Exception as e:
Utils.error("Erreur lors du tweet : " + str(e))
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