Skip to content

Commit

Permalink
BUG: Don't try to fill README information if it is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
pastewka committed May 15, 2021
1 parent aca6aad commit 91bf3d6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions dtool_lookup_gui/MainApplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,18 @@ def fill_readme_tree_store_from_list(store, list_data, parent=None):
else:
append_entry(store, entry, current_data, parent)

for entry, value in data.items():
if type(value) is list:
current = store.append(parent,
[entry, None, False, None])
fill_readme_tree_store_from_list(store, value, parent=current)
elif type(value) is dict:
current = store.append(parent,
[entry, None, False, None])
fill_readme_tree_store(store, value, parent=current)
else:
append_entry(store, entry, value, parent)
if data is not None:
for entry, value in data.items():
if type(value) is list:
current = store.append(parent,
[entry, None, False, None])
fill_readme_tree_store_from_list(store, value, parent=current)
elif type(value) is dict:
current = store.append(parent,
[entry, None, False, None])
fill_readme_tree_store(store, value, parent=current)
else:
append_entry(store, entry, value, parent)


def fill_manifest_tree_store(store, data, parent=None):
Expand Down

0 comments on commit 91bf3d6

Please sign in to comment.