NoneType has no attribute 'upgrades'
When playing in the Phedg1
topic, with minimap disruption selected, I get this traceback spamming the logs:
2021-03-16 16:25:24,354 <trosnoth.trosnothgui.ingame.detailsInterface.UpgradeDisplay object at 0x7fa46cb890d0>: 'NoneType' object has no attribute 'upgrades'
Traceback (most recent call last):
File "/home/josh/dev/trosnoth2/trosnoth/gui/framework/framework.py", line 79, in draw
element.draw(screen)
File "/home/josh/dev/trosnoth2/trosnoth/trosnothgui/ingame/gauges.py", line 162, in draw
super(CoinGauge, self).draw(surface, True)
File "/home/josh/dev/trosnoth2/trosnoth/trosnothgui/ingame/gauges.py", line 25, in draw
ratio = min(1, max(0, self.getRatio()))
File "/home/josh/dev/trosnoth2/trosnoth/trosnothgui/ingame/gauges.py", line 172, in getRatio
totalCoins = self.player.team.upgrades[self.upgrade]
AttributeError: 'NoneType' object has no attribute 'upgrades'