diff options
| author | Paul Burton <[email protected]> | 2016-09-27 16:03:51 +0100 |
|---|---|---|
| committer | sjg <[email protected]> | 2016-10-09 09:30:32 -0600 |
| commit | ac3fde9394ce90503930026c62ffd94bf7fa09fd (patch) | |
| tree | ba4656e51f8ff8e318e688b2de629e73698a8e24 /tools/patman/command.py | |
| parent | a920a17b2f418535870788ae81234dc6b8aa6661 (diff) | |
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 <[email protected]>
Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/patman/command.py')
| -rw-r--r-- | tools/patman/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/command.py b/tools/patman/command.py index d1f0ca505c0..bebc495b599 100644 --- a/tools/patman/command.py +++ b/tools/patman/command.py @@ -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)) |
