Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

fix unittest

phailc05b39a05640
diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py
index f6d2cccc7..9553e2b1a 100644
--- a/src/paperless_mail/mail.py
+++ b/src/paperless_mail/mail.py
@@ -173,7 +173,9 @@ class MailAccountHandler(LoggingMixin):
f"Error while authenticating account {account}: {e}",
exc_info=False,
)
- return total_processed_files
+ raise MailError(
+ f"Error while authenticating account {account}",
+ ) from e
self.log(
"debug",