Browse Source

Mail fetcher Timeout exception

Guénaël Muller 7 years ago
parent
commit
3fd01f4631
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tracim/tracim/lib/email_fetcher.py

+ 3 - 0
tracim/tracim/lib/email_fetcher.py View File

206
                                  for m in messages]
206
                                  for m in messages]
207
                 self._notify_tracim(cleaned_mails)
207
                 self._notify_tracim(cleaned_mails)
208
                 self._disconnect()
208
                 self._disconnect()
209
+            except filelock.Timeout as e:
210
+                log = 'Mail Fetcher Lock Timeout {}'
211
+                logger.warning(self, log.format(e.__str__()))
209
             except Exception as e:
212
             except Exception as e:
210
                 # TODO - G.M - 2017-11-23 - Identify possible exceptions
213
                 # TODO - G.M - 2017-11-23 - Identify possible exceptions
211
                 log = 'IMAP error: {}'
214
                 log = 'IMAP error: {}'