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

Unified Diff: owners.py

Issue 10383038: Fix crash in owners.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 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: owners.py
diff --git a/owners.py b/owners.py
index a7067cba4e9915413572616645eb1b45d0703abc..d3028a593462177d881456d357f478273c63c831 100644
--- a/owners.py
+++ b/owners.py
@@ -215,6 +215,7 @@ class Database(object):
# Remove all directories owned by the current owner from the remaining
# list.
for dirname in owned_dirs[max_owner]:
- dirs.remove(dirname)
+ if dirname in dirs:
+ dirs.remove(dirname)
return final_owners
« 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