mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 14:40:16 -05:00
dcerpc: disable unbalanced-tuple-unpacking
Disable unbalanced-tuple-unpacking for RuntimeException thrown by samba since this one should always contain two members. https://pagure.io/freeipa/issue/6874 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
1 parent
216d37b7f0
commit
3c616d733b
1 file changed
+3
-1
+3
-1
@@ -1275,7 +1275,9 @@ class TrustDomainInstance(object):
|
||||
self._pipe.DeleteTrustedDomain(self._policy_handle,
|
||||
res.info_ex.sid)
|
||||
except RuntimeError as e:
|
||||
num, message = e.args # pylint: disable=unpacking-non-sequence
|
||||
# pylint: disable=unbalanced-tuple-unpacking
|
||||
num, _message = e.args
|
||||
# pylint: enable=unbalanced-tuple-unpacking
|
||||
# Ignore anything but access denied (NT_STATUS_ACCESS_DENIED)
|
||||
if num == -1073741790:
|
||||
raise access_denied_error
|
||||
|
||||
Reference in new issue
Block a user