Plan: resolve linter contradictions
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/1e4a1f06-55b9-4040-853e-6aaf9ee574c8 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
+2
-6
@@ -53,14 +53,10 @@ async def scheduled_imap_polling():
|
||||
|
||||
# If new domains were found, log them
|
||||
if results["new_domains"]:
|
||||
logger.info(
|
||||
"New domains found: %s", ", ".join(results["new_domains"])
|
||||
)
|
||||
logger.info("New domains found: %s", ", ".join(results["new_domains"]))
|
||||
|
||||
else:
|
||||
logger.error(
|
||||
"IMAP polling failed: %s", results.get("error", "Unknown error")
|
||||
)
|
||||
logger.error("IMAP polling failed: %s", results.get("error", "Unknown error"))
|
||||
|
||||
except Exception as e: # pylint: disable=broad-exception-caught
|
||||
logger.error("Error in IMAP polling task: %s", str(e))
|
||||
|
||||
Reference in New Issue
Block a user