Added some error handling

This commit is contained in:
Daniel Quinn
2016-02-14 01:32:25 +00:00
parent fc5d89c6fc
commit 3b5d4cdd39
2 changed files with 23 additions and 15 deletions

View File

@@ -61,5 +61,5 @@ class Command(Renderable, BaseCommand):
# Occasionally fetch mail and store it to be consumed on the next loop
delta = self.mail_fetcher.last_checked + self.MAIL_DELTA
if delta > datetime.datetime.now():
if delta < datetime.datetime.now():
self.mail_fetcher.pull()