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:
@@ -234,7 +234,7 @@ class CloudflareDNSProvider(BaseDNSProvider):
|
||||
txt = answer.get("data", "").strip('"')
|
||||
records.append(txt)
|
||||
return records
|
||||
except Exception as exc:
|
||||
except (httpx.RequestError, httpx.HTTPStatusError, httpx.TimeoutException) as exc:
|
||||
raise LookupError(f"Cloudflare DoH lookup failed for {name}: {exc}") from exc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user