mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
python: Fix reference to undefined name ‘samba’
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
5c5045eeb4
commit
83230577ec
@ -208,7 +208,7 @@ class RegistryGroupPolicies(object):
|
||||
def __validate_extension_registration(self, ext_name, ext_attr):
|
||||
try:
|
||||
ext_name_guid = GUID(ext_name)
|
||||
except samba.NTSTATUSError as e:
|
||||
except NTSTATUSError as e:
|
||||
if e.args[0] == NT_STATUS_INVALID_PARAMETER:
|
||||
raise SyntaxError('Extension name not formatted correctly')
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user