mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 04:06:33 +08:00
Old style exceptions are Python 3 syntax errors
This commit is contained in:
committed by
Daniel Agar
parent
bc35251799
commit
41516fbd55
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user