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

Unified Diff: roll_dep.py

Issue 1150413002: Also handle IOError in roll_dep.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: roll_dep.py
diff --git a/roll_dep.py b/roll_dep.py
index 50027b35712ff5fd999f163099bd93e7d7a6c74d..60398791b8d1865dd41e33e10b65dd270323d48f 100755
--- a/roll_dep.py
+++ b/roll_dep.py
@@ -28,7 +28,7 @@ def roll(root, deps_dir, key, reviewers, bug):
try:
with open(deps, 'rb') as f:
deps_content = f.read()
- except OSError:
+ except (IOError, OSError):
print >> sys.stderr, (
'Ensure the script is run in the directory containing DEPS file.')
return 1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698