From 6f323bbad2e5f1f2a1febf8225f558e6e23b9c75 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 26 Apr 2011 15:42:53 +0000 Subject: [PATCH] Fix when entry is None. When the tree is not versionned, svn can return . R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/6899052 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@83020 0039d316-1c4b-4281-b951-d872f2087c98 --- scm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scm.py b/scm.py index 2adabddad0..1365b0b404 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']