Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tabasics.py
diff options
context:
space:
mode:
authorWalter 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)
commitea230b44f94b31088be9509ec350203b039a3153 (patch)
treecfd9ef50bfb3490ba3f8fe102ecbbf5e1789fae6 /TurtleArt/tabasics.py
parent54e48c22d28c5e573b5af9dba0754d54a2f1b24a (diff)
need exception handler
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r--TurtleArt/tabasics.py4
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")