Handle zero length scripts
This commit is contained in:
parent
1f1b99c725
commit
326efbe94d
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
def _real_extract_blocks_from_stack(stack):
|
||||
for block in stack:
|
||||
if isinstance(block, list):
|
||||
if isinstance(block, list) and block:
|
||||
if isinstance(block[0], str): # Got a primitive
|
||||
yield block
|
||||
for item in _real_extract_blocks_from_stack(block[1:]):
|
||||
|
|
Reference in a new issue