Old style exceptions are Python 3 syntax errors

This commit is contained in:
Christian Clauss
2019-09-22 20:16:14 +02:00
committed by Daniel Agar
parent bc35251799
commit 41516fbd55
3 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ def run_tidy(args, tmpdir, build_path, queue):
try:
subprocess.check_call(invocation, stdin=None, stdout=open(os.devnull, 'wb'), stderr=subprocess.STDOUT)
except subprocess.CalledProcessError, e:
except subprocess.CalledProcessError as e:
sys.stdout.write(' '.join(invocation) + '\n')
subprocess.call(invocation)
global tidy_failures