[Bugs] #2679 UNSP: Paste blocks fail gracefully on error

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Mar 8 18:48:28 EST 2011


#2679: Paste blocks fail gracefully on error
------------------------------------------+---------------------------------
    Reporter:  tonyforster                |          Owner:  walter                     
        Type:  enhancement                |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Turtleart                  |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Status_field:  Unconfirmed                |   Distribution:  Unspecified                
   Seeta_dev:                             |  
------------------------------------------+---------------------------------
 It would be good if TA pasted those blocks that are correctly formatted
 and just omitted badly formatted blocks

 in this case I was missing the ]] on the turtle:
 [15, ["vspace", 0], 370, 418, [14, null]],
 [-1, ["turtle", "tony1.5"], 0, 0, 0, 0, 50, 5


 Traceback (most recent call last):
   File "/home/olpc/Activities/TurtleArt.activity/TurtleArtActivity.py",
 line 781, in _paste_cb
     self.tw.paste_offset)
   File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tawindow.py",
 line 1196, in process_data
     blocks.append(self.load_block(blk, offset))
   File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tawindow.py",
 line 2444, in load_block
     b[2] + self.canvas.cx + offset,
 TypeError: cannot concatenate 'str' and 'int' objects

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


More information about the Bugs mailing list