no need for such a verbose error message.

master
b3yond 2019-01-11 15:16:37 +01:00
parent 3590aa67a3
commit 83d7dd91e6
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class Mailbot(Bot):
try:
mails = mailbox.mbox("/var/mail/" + config['mail']['mbox_user'])
except FileNotFoundError:
logger.error("No mbox file found.", exc_info=True)
logger.error("No mbox file found.")
return reports
for msg in mails:
if get_date_from_header(msg['Date']) > user.get_seen_mail():