diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-10-30 13:19:17 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-10-30 13:19:17 (GMT) |
commit | 9ea6fd9f6b8d2355a82cc1700694e0fcc693d74b (patch) | |
tree | 76d5ac9c731c774c45929e0046745a2e94abf789 /turtleblocks.py | |
parent | 29bf4dd784ee44c21902e40f7bcd244994c5cb4f (diff) |
output/log error message from python export
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-x | turtleblocks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/turtleblocks.py b/turtleblocks.py index 1e6495f..55a02dc 100755 --- a/turtleblocks.py +++ b/turtleblocks.py @@ -569,6 +569,7 @@ Would you like to save before quitting?')) if pyee.block is not None: pyee.block.highlight() self.tw.showlabel('status', str(pyee)) + print pyee return if not pythoncode: return @@ -582,7 +583,7 @@ Would you like to save before quitting?')) (filename, self.tw.load_save_folder) = get_save_name( save_type, self.tw.load_save_folder, default_name) if isinstance(filename, unicode): - filename = filename.encode('utf8') + filename = filename.encode('utf-8') if filename is not None: f = file(filename, 'w') f.write(pythoncode) |