summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib/bookmark_model.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/pyautolib/bookmark_model.py')
-rw-r--r--chrome/test/pyautolib/bookmark_model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/test/pyautolib/bookmark_model.py b/chrome/test/pyautolib/bookmark_model.py
index e201ccf..f67c969 100644
--- a/chrome/test/pyautolib/bookmark_model.py
+++ b/chrome/test/pyautolib/bookmark_model.py
@@ -69,7 +69,7 @@ class BookmarkModel(object):
for node in nodes:
if node['id'] == id:
return node
- for child in node['children']:
+ for child in node.get('children', []):
found_node = self.FindByID(id, [child])
if found_node:
return found_node