1
0
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:
Joseph Sutton 2023-08-28 13:15:10 +12:00 committed by Andrew Bartlett
parent 5c5045eeb4
commit 83230577ec

View File

@ -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