We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d19489b commit 14e772bCopy full SHA for 14e772b
model/zone.php
@@ -222,8 +222,10 @@ public function &list_resource_record_sets() {
222
$this->nameservers = array();
223
try {
224
$data = $this->powerdns->get('zones/'.urlencode($this->pdns_id));
225
- } catch(Pest_InvalidRecord $e) {
+ } catch(Pest_InvalidRecord $e) { // before PowerDNS 4.2
226
throw new ZoneNotFoundInPowerDNS;
227
+ } catch(Pest_NotFound $e) { // 404 since PowerDNS 4.2
228
+ throw new ZoneNotFoundInPowerDNS;;
229
}
230
$possible_bad_data = array();
231
usort($data->rrsets,
0 commit comments