mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-05-19 18:35:24 +00:00
Better exception handling
This commit is contained in:
@@ -1382,6 +1382,8 @@ def watch_inbox(host, username, password, callback, reports_folder="INBOX",
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
|
||||
server.idle_done()
|
||||
logger.info("\nIDLE mode done")
|
||||
server.logout()
|
||||
try:
|
||||
server.idle_done()
|
||||
server.logout()
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user