fixing issue where set_domains() is still called when get_all_zones() throws an exception
This commit is contained in:
parent
9576fa4b0f
commit
b885244aa7
|
@ -35,7 +35,6 @@ def get_all_zones():
|
||||||
print("[+] Error with DNS Provider {}: {}".format(dns_provider.name, e))
|
print("[+] Error with DNS Provider {}: {}".format(dns_provider.name, e))
|
||||||
log_data["message"] = f"get all zones failed for {dns_provider} {e}."
|
log_data["message"] = f"get all zones failed for {dns_provider} {e}."
|
||||||
sentry.captureException(extra=log_data)
|
sentry.captureException(extra=log_data)
|
||||||
set_domains(dns_provider, [])
|
|
||||||
|
|
||||||
status = SUCCESS_METRIC_STATUS
|
status = SUCCESS_METRIC_STATUS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue