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

InstructionBlock returns empty list instead of exception when qurey for empty branch

parent b0dfad44
No related branches found
No related tags found
2 merge requests!13Infrasructure patch 1,!12More improvements to Infrastructure
......@@ -131,6 +131,8 @@ class InstructionBlock:
str: The operation specified by kind and index
"""
if index == 'all':
if kind not in self.operations:
return []
return self.operations[kind]
else:
as_int = int(index) # will Raise ValueError if not integer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment