Skip to content
Snippets Groups Projects
Commit ffb18c09 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix get_block

parent 6b7388f6
Branches
No related tags found
1 merge request!3more work on infrastructure II
...@@ -175,7 +175,7 @@ class TemplateManager: ...@@ -175,7 +175,7 @@ class TemplateManager:
to_return = [b for b in self._blocks if b.name == block_name] to_return = [b for b in self._blocks if b.name == block_name]
if len(to_return) == 0: if len(to_return) == 0:
raise IndexError("Block Not Found") raise IndexError("Block Not Found")
if len(to_return) > 0: if len(to_return) > 1:
raise IndexError("Multiple Blocks Found") raise IndexError("Multiple Blocks Found")
return to_return[0] return to_return[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment