diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-01 17:13:41 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-01 17:13:41 (GMT) |
commit | 9762cdd7b160ad3ac1a596114a7f0fc9e273837c (patch) | |
tree | 6787d8ff98e6a7956a403b92763e4ffa1584fe72 /turtleblocks.py | |
parent | 0942aecc5b6dcb4d4ba1e5de926a0943da25cc06 (diff) |
highlight faulty block if an error occurs during export
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-x | turtleblocks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/turtleblocks.py b/turtleblocks.py index a42420b..c22a310 100755 --- a/turtleblocks.py +++ b/turtleblocks.py @@ -537,6 +537,8 @@ Would you like to save before quitting?')) try: pythoncode = save_python(self.tw) except PyExportError as pyee: + if pyee.block is not None: + pyee.block.highlight() self.tw.showlabel('status', str(pyee)) return if not pythoncode: |