Opened 10 years ago
Closed 10 years ago
#4641 closed defect (fixed)
Save as Python fails when stack is empty
Reported by: | walter | Owned by: | mzepf |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Turtleart | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | mzepf | Distribution/OS: | Unspecified |
Bug Status: | Unconfirmed |
Description
Saving a project with just a Start block fails with this error.
Traceback (most recent call last):
File "./turtleblocks.py", line 567, in _do_save_python_cb
pythoncode = save_python(self.tw)
File "/home/walter/Activities/TurtleBlocks.activity/TurtleArt/taexportpython.py", line 101, in save_python
pythoncode = _action_stack_to_python(block, tw.lc, name=stack_name)
File "/home/walter/Activities/TurtleBlocks.activity/TurtleArt/taexportpython.py", line 117, in _action_stack_to_python
if not isinstance(ast_list[-1], ast.Yield):
IndexError: list index out of range
Change History (2)
comment:1 Changed 10 years ago by mzepf
- Owner set to mzepf
- Status changed from new to accepted
comment:2 Changed 10 years ago by mzepf
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
Fixed by https://git.sugarlabs.org/turtleart/mainline/merge_requests/9