From e4b732abd4ea034f75645d333ff5b357d1b612e7 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Fri, 28 Aug 2015 17:27:42 +0200 Subject: track shooting angles and distances --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui.py') diff --git a/gui.py b/gui.py index 83730bf..26b1045 100644 --- a/gui.py +++ b/gui.py @@ -211,7 +211,7 @@ def draw_cell(cell): cx2,cy2 = world_to_win_pt(p2,c.player.center) cx3,cy3 = world_to_win_pt(p3,c.player.center) - except AttributeError: + except (AttributeError, TypeError): cx2,cy2=cx,cy cx3,cy3=cx,cy -- cgit v1.2.3