Opened 12 years ago
#2679 new enhancement
Paste blocks fail gracefully on error
Reported by: | tonyforster | Owned by: | walter |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Turtleart | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description
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