From 77122dc26e14d477c065e93ab2825949582f7cc0 Mon Sep 17 00:00:00 2001 From: phail Date: Wed, 13 Apr 2022 23:37:21 +0200 Subject: [PATCH] fix unittest --- src/paperless_mail/mail.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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",