]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Includes exception information during exception listing folders
authorTrenton Holmes <holmes.trenton@gmail.com>
Tue, 19 Apr 2022 20:37:30 +0000 (13:37 -0700)
committerTrenton Holmes <trenton.holmes@psware.com>
Tue, 19 Apr 2022 20:40:04 +0000 (13:40 -0700)
Co-authored-by: Florian <florian.brandes@posteo.de>
src/paperless_mail/mail.py

index c9edf3e5e168d2a3dc885626f38bce27d4700a50..8a9c1106c87cf906889836e341d9a743c6eb02eb 100644 (file)
@@ -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(