Fixing flake-error

This commit is contained in:
Ola Thoresen committed 2021-01-21 08:34:56 +01:00
1 parent be8395dbe3
commit 76614bdc94
1 file changed
+2 -1
+2 -1
View File
@@ -1237,7 +1237,8 @@ def watch_inbox(host, username, password, callback, port=None, ssl=True,
logger.warning("IMAP connection timeout. Reconnecting...")
sleep(5)
except Exception as e:
logger.warning("IMAP connection error. {0}. Reconnecting...".format(e))
logger.warning("IMAP connection error. {0}. "
"Reconnecting...".format(e))
sleep(5)