mirror of
https://github.com/samba-team/samba.git
synced 2025-08-09 17:49:29 +03:00
py/dnsserver: add a missing exception variable
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
committed by
Noel Power
parent
3c18bb6c77
commit
b5e2651f1c
@ -297,7 +297,7 @@ def flag_from_string(rec_type):
|
||||
rtype = rec_type.upper()
|
||||
try:
|
||||
return getattr(dnsp, 'DNS_TYPE_' + rtype)
|
||||
except AttributeError:
|
||||
except AttributeError as e:
|
||||
raise DNSParseError('Unknown type of DNS record %s' % rec_type) from e
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user