From ea230b44f94b31088be9509ec350203b039a3153 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 07 May 2013 16:27:01 +0000 Subject: need exception handler --- (limited to 'TurtleArt') 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") -- cgit v0.9.1