A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Catches OSError on IMAP connection error
syntonym5c1edf78cef2
diff --git a/src/documents/mail.py b/src/documents/mail.pyindex afa1b4362..d54b387b7 100644--- a/src/documents/mail.py+++ b/src/documents/mail.py@@ -216,7 +216,11 @@ class MailFetcher(Loggable):return rdef _connect(self):- self._connection = imaplib.IMAP4_SSL(self._host, self._port)+ try:+ self._connection = imaplib.IMAP4_SSL(self._host, self._port)+ except OSError as e:+ msg = "Problem connecting to {}: {}".format(self._host, e.strerror)+ raise MailFetcherError(msg)def _login(self):