From 8d0c1444778cd348830621f88495b4886e1bef40 Mon Sep 17 00:00:00 2001 From: Lucas Thode Date: Thu, 25 Nov 2010 11:57:40 -0600 Subject: [PATCH] Fixed pygauge traceback for Noctis Apparently, that ship hands back None for drone bay capacity (and possibly drone bandwidth too). Fixed the resourcesView to not pass None to pygauge, thus fixing the traceback. --- gui/builtinStatsViews/resourcesViewFull.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/builtinStatsViews/resourcesViewFull.py b/gui/builtinStatsViews/resourcesViewFull.py index eccbac060..80967805f 100644 --- a/gui/builtinStatsViews/resourcesViewFull.py +++ b/gui/builtinStatsViews/resourcesViewFull.py @@ -214,7 +214,7 @@ class ResourcesViewFull(StatsView): gauge = getattr(self, "gauge%s%s" % (panel, capitalizedType)) resUsed = getattr(fit,"%sUsed" % resourceType) - gauge.SetValueRange(resUsed, resMax[i]()) + gauge.SetValueRange(resUsed or 0, resMax[i]() or 0) i+=1 else: