Ignore the exception if we're retrying the task

This commit is contained in:
2011-01-04 08:32:58 +00:00
parent 43cc7d56ca
commit 161f53f6f8

View File

@@ -19,7 +19,8 @@ class send_reddit_message(Task):
ib.send(to, subject, message)
except (HTTPError, URLError), exc:
logger.error("Error sending message, queueing for retry")
self.retry([to, subject, message], kwargs=kwargs, exc=exc)
send_reddit_message.retry(args=[to, subject, message], kwargs=kwargs, exc=exc)
pass
except LoginError, exc:
logger.error("Error logging into Reddit")