From: Trenton Holmes Date: Tue, 19 Apr 2022 20:37:30 +0000 (-0700) Subject: Includes exception information during exception listing folders X-Git-Tag: v1.8.0-beta.rc1~176^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f32e5360bb1c84d5a4290615a4079c7e014d2a;p=thirdparty%2Fpaperless-ngx.git Includes exception information during exception listing folders Co-authored-by: Florian --- diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py index c9edf3e5e1..8a9c1106c8 100644 --- a/src/paperless_mail/mail.py +++ b/src/paperless_mail/mail.py @@ -198,10 +198,11 @@ class MailAccountHandler(LoggingMixin): try: for folder_info in M.folder.list(): self.log("info", f"Located folder: {folder_info.name}") - except Exception: + except Exception as e: self.log( "error", - "Exception during folder listing, unable to provide list folders", + "Exception during folder listing, unable to provide list folders: " + + str(e), ) raise MailError(