TypeError: slice indices must be integers or None or have an __index__ method (in clearOldHistory)
Seen on the server. This error was then repeated many times over the following few seconds.
2022-07-14 11:30:37,373 [1]Error in event callback (from /opt/trosnoth/trosnoth/server/../../trosnoth/model/universe.py:1832)
Traceback (most recent call last):
File "/opt/trosnoth/trosnoth/server/../../trosnoth/utils/event.py", line 69, in execute
call(*args, **kwargs)
File "/opt/trosnoth/trosnoth/server/../../trosnoth/utils/event.py", line 141, in __call__
method(*args, **kwargs)
File "/opt/trosnoth/trosnoth/server/../../trosnoth/game.py", line 239, in worldTickDone
self.checkCollisionsWithCollectables()
File "/opt/trosnoth/trosnoth/server/../../trosnoth/game.py", line 268, in checkCollisionsWithCollectables
unit.clearOldHistory(greatest_delay)
File "/opt/trosnoth/trosnoth/server/../../trosnoth/model/unit.py", line 101, in clearOldHistory
self.history[:-delay - 1] = []
TypeError: slice indices must be integers or None or have an __index__ method