fix: address code review — narrow exception types, computed dkimLiveText getter
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/19d17518-732d-4644-889b-cc63256e19b1 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -168,7 +168,7 @@ async def get_domains_summary(db: Session = Depends(get_db)):
|
||||
provider.check_domain(domain_name, selectors=combined),
|
||||
timeout=10.0,
|
||||
)
|
||||
except (asyncio.TimeoutError, Exception) as exc: # pylint: disable=broad-exception-caught
|
||||
except (asyncio.TimeoutError, LookupError, OSError) as exc:
|
||||
logger.warning("DNS check failed for %s: %s", domain_name, exc)
|
||||
return DomainDNSResult()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user