From 4d6e0ee7eaeda61de245d541ad26c398be540282 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 31 Oct 2013 03:13:46 +0000 Subject: fix problem with int stack names --- (limited to 'TurtleArt/tautils.py') diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py index 634ee01..ef80877 100644 --- a/TurtleArt/tautils.py +++ b/TurtleArt/tautils.py @@ -819,7 +819,7 @@ def get_stack_name(blk): return 'stack2' elif top_block.name == 'hat': try: - return top_block.connections[1].values[0] + return str(top_block.connections[1].values[0]) except (AttributeError, TypeError, IndexError): # AttributeError: t_b has no attribute 'connections' or t_b.c[1] # has no attribute 'value' -- cgit v0.9.1