Skip to content

Commit

Permalink
register_dynamic_trees() now handles non-iterables in 'trees' arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Nov 9, 2018
1 parent 1c4dd79 commit ec2eaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sitetree/sitetreeapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def register_dynamic_trees(trees, *args, **kwargs):
trees = [trees]
trees.extend(args)

for tree in trees:
for tree in trees or []:
if tree is not None and tree['sitetrees'] is not None:
if tree['tree'] is None:
# Register trees as they are defined in app.
Expand Down

0 comments on commit ec2eaf7

Please sign in to comment.