send-to-mycourse: when succesfull erase the failure message
This commit is contained in:
parent
dd6d67d652
commit
9ca705a905
|
@ -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'))
|
||||
|
|
Reference in New Issue