mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-27 00:51:50 +00:00
patman: Make exception handling python 3.x safe
Syntax for exception handling is a little more strict in python 3.x. Convert all uses to a form accepted by both python 2.x & python 3.x. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a920a17b2f
commit
ac3fde9394
3 changed files with 8 additions and 8 deletions
|
@ -85,7 +85,7 @@ def RunPipe(pipe_list, infile=None, outfile=None,
|
|||
|
||||
try:
|
||||
last_pipe = cros_subprocess.Popen(cmd, cwd=cwd, **kwargs)
|
||||
except Exception, err:
|
||||
except Exception as err:
|
||||
result.exception = err
|
||||
if raise_on_error:
|
||||
raise Exception("Error running '%s': %s" % (user_pipestr, str))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue