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

Unified Diff: scm.py

Issue 6899052: Fix when entry is None. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 8 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: scm.py
diff --git a/scm.py b/scm.py
index 2adabddad005954cbb4c9987f4ac19b7f5c8def0..1365b0b404abf92ed1fa170adf98e7a8cc6d00fa 100644
--- a/scm.py
+++ b/scm.py
@@ -518,6 +518,8 @@ class SVN(object):
if info is None:
return result
entry = info.find('entry')
+ if entry is None:
+ return result
# Use .text when the item is not optional.
result['Path'] = entry.attrib['path']
« 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