Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 5287899..0235095 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -2345,9 +2345,9 @@ class TurtleArtWindow():
# Some blocks get transformed.
if btype in BASIC_STYLE_VAR_ARG and value is not None:
- if self.running_sugar:
+ if self.running_sugar and value > 0:
self.load_python_code_from_journal(datastore.get(value), blk)
- else:
+ elif value > 0: # catch depreciated format (#2501)
self.selected_blk = blk
self.load_python_code_from_file(fname=value,
add_new_block=False)