summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-02-14 10:35:53 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-02-15 00:18:30 +0100
commit16e173ad2e52ed1140fd43cabdeec0bc4553f6d2 (patch)
tree33c2b57e67a018d6ff819393ee23b94a976cd640 /script
parentbf2086e137e00414669828991027d9c450fd0bcc (diff)
downloadsamba-16e173ad2e52ed1140fd43cabdeec0bc4553f6d2.tar.gz
selftest and autrobuild: convert 'except X, e' to 'except X as e'
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index 40bace59ccb..ebe49bb75cb 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -747,7 +747,7 @@ top_commit_msg = run_cmd("git log -1", dir=gitroot, output=True)
try:
os.makedirs(testbase)
-except Exception, reason:
+except Exception as reason:
raise Exception("Unable to create %s : %s" % (testbase, reason))
cleanup_list.append(testbase)