diff options
-rw-r--r-- | tamyblock.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tamyblock.py b/tamyblock.py index 63dd1b9..5b474ee 100644 --- a/tamyblock.py +++ b/tamyblock.py @@ -34,7 +34,9 @@ def myblock(lc,x): # ########################################################################### - if type(x) != int and type(x) != float: # make sure x is a number + try: # make sure x is a number + x = float(x) + except: return pen = lc.tw.turtle.pendown # save current turtle pen state |