Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • trosnoth trosnoth
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Games
  • trosnothtrosnoth
  • Issues
  • #4
Closed
Open
Issue created Mar 16, 2021 by Joshua D. Bartlett@talljoshMaintainer

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'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking