diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-05-07 16:27:01 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-05-07 16:27:01 (GMT) |
commit | ea230b44f94b31088be9509ec350203b039a3153 (patch) | |
tree | cfd9ef50bfb3490ba3f8fe102ecbbf5e1789fae6 | |
parent | 54e48c22d28c5e573b5af9dba0754d54a2f1b24a (diff) |
need exception handler
-rw-r--r-- | TurtleArt/tabasics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 07cd6d6..b8cc164 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -84,7 +84,7 @@ def _num_type(x): try: ord(x) return True - finally: + except TypeError: return False @@ -1368,7 +1368,7 @@ variable')) return(x) try: return int(ord(x)) - finally: + except TypeError: pass if isinstance(x, list): raise logoerror("#syntaxerror") |