Includes exception information during exception listing folders

Co-authored-by: Florian <florian.brandes@posteo.de>
This commit is contained in:
Trenton HolmesandFlorian authored and Trenton Holmes committed 2022-04-19 13:40:04 -07:00
1 parent 06cfba8c7e
commit 57f32e5360
1 file changed
+3 -2
+3 -2
View 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(