Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: client/third_party/oauth2client/clientsecrets.py

Issue 1768993002: Update oauth2client to v2.0.1 and googleapiclient to v1.5.0. Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/third_party/oauth2client/clientsecrets.py
diff --git a/client/third_party/oauth2client/clientsecrets.py b/client/third_party/oauth2client/clientsecrets.py
index eba1fd9dc095c206349217afe111c06a56aaff26..4a47d0d911ccf86cea4d530a6a789f6598ad3f75 100644
--- a/client/third_party/oauth2client/clientsecrets.py
+++ b/client/third_party/oauth2client/clientsecrets.py
@@ -121,8 +121,9 @@ def _loadfile(filename):
try:
with open(filename, 'r') as fp:
obj = json.load(fp)
- except IOError:
- raise InvalidClientSecretsError('File not found: "%s"' % filename)
+ except IOError as exc:
+ raise InvalidClientSecretsError('Error opening file', exc.filename,
+ exc.strerror, exc.errno)
return _validate_clientsecrets(obj)

Powered by Google App Engine
This is Rietveld 408576698