From 146bda03fa87968077e5c7db9991a79ac1a95338 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Sun, 29 Aug 2010 16:42:14 +0200 Subject: [PATCH] Don't forget to check if fit is None --- gui/statsPane.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 17361bc78..20395296a 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -176,7 +176,7 @@ class StatsPane(wx.Panel): else: lbl.SetLabel("0.0") - maxTank = ("shieldPassive", fit.calculateShieldRecharge()) + maxTank = ("shieldPassive", fit.calculateShieldRecharge() if fit else 0) for tankType in ("shield", "armor", "hull"): if tank is not None: maxType, maxAmount = maxTank