Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
7385519f
Commit
7385519f
authored
Jan 09, 2017
by
Mindiell
Browse files
Ajout d'un message d'erreur lorsque le tweet plante
parent
46221f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
7385519f
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment