mirror of
https://github.com/samba-team/samba.git
synced 2025-07-14 12:59:07 +03:00
python/samba: Py2|Py3 compat, fix more missed exception tuple issues
This commit is contained in:
committed by
Andrew Bartlett
parent
a3bf30e3a7
commit
9650deee03
@ -319,7 +319,7 @@ class drs_Replicate(object):
|
||||
schema=schema, req_level=req_level, req=req)
|
||||
except WERRORError as e:
|
||||
# Check if retrying with the GET_TGT flag set might resolve this error
|
||||
if self._should_retry_with_get_tgt(e[0], req):
|
||||
if self._should_retry_with_get_tgt(e.args[0], req):
|
||||
|
||||
print("Missing target object - retrying with DRS_GET_TGT")
|
||||
req.more_flags |= drsuapi.DRSUAPI_DRS_GET_TGT
|
||||
|
Reference in New Issue
Block a user