summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-02-21 12:52:37 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-02-21 12:52:37 (GMT)
commit9ca705a905fefd2930bb9518b74bf42f72c33189 (patch)
tree667270b8e15047eb3342d7deaff781b756f4c82f
parentdd6d67d6526b0cd547ae8013365f8502dc031fcf (diff)
downloadpolynum-blackboard-9ca705a905fefd2930bb9518b74bf42f72c33189.zip
polynum-blackboard-9ca705a905fefd2930bb9518b74bf42f72c33189.tar.gz
polynum-blackboard-9ca705a905fefd2930bb9518b74bf42f72c33189.tar.bz2
send-to-mycourse: when succesfull erase the failure message
-rw-r--r--polynum_blackboard/management/commands/send-to-mycourse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/polynum_blackboard/management/commands/send-to-mycourse.py b/polynum_blackboard/management/commands/send-to-mycourse.py
index e01aceb..327b47b 100644
--- a/polynum_blackboard/management/commands/send-to-mycourse.py
+++ b/polynum_blackboard/management/commands/send-to-mycourse.py
@@ -56,6 +56,7 @@ class Command(BaseCommand):
push.sent = True
if ok:
logger.info('sending succeeded')
+ push.failure = ''
else:
push.failure = result
logger.error('sending failed: %r', result.encode('utf-8'))