mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Ignore the exception if we're retrying the task
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user