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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user