We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6a687 commit 88844dfCopy full SHA for 88844df
api/desecapi/views/dyndns.py
@@ -114,17 +114,15 @@ def qname(self):
114
"code": "domain-unspecified",
115
}
116
)
117
- except Domain.DoesNotExist:
118
- metrics.get("desecapi_dynDNS12_domain_not_found").inc()
119
- raise NotFound("nohost")
120
121
@cached_property
122
def domain(self):
123
try:
124
return Domain.objects.filter_qname(
125
self.qname, owner=self.request.user
126
).order_by("-name_length")[0]
127
- except (IndexError, ValueError):
+ except (IndexError, ValueError, Domain.DoesNotExist):
+ metrics.get("desecapi_dynDNS12_domain_not_found").inc()
128
raise NotFound("nohost")
129
130
@property
0 commit comments