catch / handle DnsUpdateError (e.g. SERVFAIL)
This commit is contained in:
parent
b0c797f34d
commit
b818ea9df9
@ -198,6 +198,8 @@ class OverviewView(CreateView):
|
||||
success, level, msg = False, messages.ERROR, 'Timeout - communicating to name server failed.'
|
||||
except dnstools.NameServerNotAvailable:
|
||||
success, level, msg = False, messages.ERROR, 'Name server unavailable.'
|
||||
except dnstools.DnsUpdateError as e:
|
||||
success, level, msg = False, messages.ERROR, 'DNS update error [%s].' % str(e)
|
||||
except Domain.DoesNotExist:
|
||||
# should not happen: POST data had invalid (base)domain
|
||||
success, level, msg = False, messages.ERROR, 'Base domain does not exist.'
|
||||
|
Loading…
x
Reference in New Issue
Block a user