[Bugs] #4641 Turtleart UNSP: Save as Python fails when stack is empty

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Oct 30 08:30:23 EDT 2013


#4641: Save as Python fails when stack is empty
---------------------------------------------+--------------------------
       Reporter:  walter                     |       Owner:
           Type:  defect                     |      Status:  new
       Priority:  Unspecified by Maintainer  |   Milestone:  Unspecified
      Component:  Turtleart                  |     Version:  Unspecified
       Severity:  Unspecified                |    Keywords:
Distribution/OS:  Unspecified                |  Bug Status:  Unconfirmed
---------------------------------------------+--------------------------
\
\
 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
\
\
\

--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4641>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list