changeset 524:011a087c4370

Fix error catch thinko
author Neil Muller <drnlmuller@gmail.com>
date Sat, 07 Sep 2013 20:32:37 +0200
parents 9868bc79a6ff
children 2bc7d2195f36
files tools/area_editor.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/area_editor.py	Sat Sep 07 20:26:18 2013 +0200
+++ b/tools/area_editor.py	Sat Sep 07 20:32:37 2013 +0200
@@ -388,7 +388,7 @@
         try:
             try:
                 index = int(self.poly_choice.get_text())
-            except TypeError:
+            except ValueError:
                 index = 0
             data = self.level_widget.level.polygons[index][:]
         except KeyError: