Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tawindow.py b/tawindow.py
index eb42aad..b249f18 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -2621,6 +2621,8 @@ class TurtleArtWindow():
datapath = os.getcwd()
file_path = os.path.join(datapath, filename)
if svg:
+ if self.svg_string == '':
+ return
save_svg(self.svg_string, file_path)
self.svg_string = ''
else: