Includes exception information during exception listing folders

Co-authored-by: Florian <florian.brandes@posteo.de>
This commit is contained in:
Trenton Holmes 2022-04-19 13:37:30 -07:00 committed by Trenton Holmes
parent 06cfba8c7e
commit 57f32e5360

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(