Commits

George Notaras committed 1b0d156

Fixed bug: error response not returned.

Comments (0)

Files changed (1)

src/powerdns_manager/views.py

     # Get A and AAAA records
     dyn_rrs = Record.objects.filter(domain=dyn_zone.domain, type__in=('A', 'AAAA'))
     if not dyn_rrs:
-        HttpResponseNotFound('A or AAAA resource records not found')
+        return HttpResponseNotFound('A or AAAA resource records not found')
     
     # Check existence of hostname
     if hostname: