summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-10-28 11:12:20 +1300
committerDouglas Bagnall <dbagnall@samba.org>2018-11-01 05:08:10 +0100
commitf109fde362c81a9e0e248a244a75a9a7dbaa8f43 (patch)
treecc1d35d16a1b860e9e441b942107c9df4371d74a /source4/scripting
parent853230888324f17513ebe7d9001a87e690e63042 (diff)
downloadsamba-f109fde362c81a9e0e248a244a75a9a7dbaa8f43.tar.gz
s4/scripting/autoidl: py3 compatible except
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/bin/autoidl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/autoidl b/source4/scripting/bin/autoidl
index 6a13caa2510..317749c75a0 100755
--- a/source4/scripting/bin/autoidl
+++ b/source4/scripting/bin/autoidl
@@ -37,8 +37,8 @@ def find_num_funcs(conn):
for i in xrange(MAX_OPNUM):
try:
conn.request(i, "")
- except RuntimeError, (num, msg):
- if num == DCERPC_FAULT_OP_RNG_ERROR:
+ except RuntimeError as e:
+ if e.args[0] == DCERPC_FAULT_OP_RNG_ERROR:
return i
raise Exception("More than %d functions" % MAX_OPNUM)