stringify exceptions to move away from Exception.message
Python 2.6 deprecated the Exception.message field and Python 3 has
dropped it entirely. Using str() on the exception should get us
all the same info, so switch to that (or implicitly so when using
%s with formatting output).
BUG=chromium:980619
TEST=`cros lint` is clean w/pylint-1.7 again
TEST=`./run_tests` passes
Change-Id: Iedef5c123f7638e08364f8d7256ec0b1cb3f4be0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1829813
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/build_api.py b/scripts/build_api.py
index b962d81..2ca746d 100644
--- a/scripts/build_api.py
+++ b/scripts/build_api.py
@@ -168,4 +168,4 @@
except router_lib.Error as e:
# Handle router_lib.Error derivatives nicely, but let anything else bubble
# up.
- cros_build_lib.Die(e.message)
+ cros_build_lib.Die(e)