lint: Change 'except A, B' to 'except A as B'.
BUG=None
TEST=make test
Change-Id: I3f8a271ce67d3fb8f3736aff4f62366f776088b6
Reviewed-on: https://chromium-review.googlesource.com/985816
Commit-Ready: Pi-Hsun Shih <pihsun@chromium.org>
Tested-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
diff --git a/py/gooftool/commands.py b/py/gooftool/commands.py
index 42c3b3a..44b21f4 100755
--- a/py/gooftool/commands.py
+++ b/py/gooftool/commands.py
@@ -784,10 +784,10 @@
logging.debug('GOOFTOOL command %r', options.command_name)
options.command(options)
logging.info('GOOFTOOL command %r SUCCESS', options.command_name)
- except Error, e:
+ except Error as e:
logging.exception(e)
sys.exit('GOOFTOOL command %r ERROR: %s' % (options.command_name, e))
- except Exception, e:
+ except Exception as e:
logging.exception(e)
sys.exit('UNCAUGHT RUNTIME EXCEPTION %s' % e)