Commit 7385519f authored by Mindiell's avatar Mindiell
Browse files

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

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