Commit 2517afd1 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by LUCI CQ

[git-cl] fix bug if user is not logged when fetching tryjob results.

<ExceptionObj>.message worked in py2, but not in py3.

R=ehmaldonado@google.com

Change-Id: I1f1302d453e9142b59de4ccab0298367bffde295
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2631495
Auto-Submit: Andrii Shyshkalov <tandrii@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
parent 84e43fa2
......@@ -421,7 +421,7 @@ def _fetch_tryjobs(changelist, buildbucket_host, patchset=None):
else:
print('Warning: Some results might be missing because %s' %
# Get the message on how to login.
(auth.LoginRequiredError().message,))
(str(auth.LoginRequiredError()),))
http = httplib2.Http()
http.force_exception_to_status_code = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment