Mercurial > nagslang
diff tools/area_editor.py @ 524:011a087c4370
Fix error catch thinko
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 07 Sep 2013 20:32:37 +0200 |
parents | 9868bc79a6ff |
children | 811481b20689 |
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: