hll_rcon_tool
hll_rcon_tool copied to clipboard
handle_new_match_start failure when connecting a fresh installation to a running server
On a fresh install with a match in progress there is no match history.
Just filing this so I can keep track of it to fix it later.
[2024-04-17 16:20:25,528][ERROR][MyServer1][v9.7.0-4-g8fc6d69] rcon.hooks hooks.py:handle_new_match_start:254 | Unexpected error while running stats worker
Traceback (most recent call last):
File "/code/rcon/hooks.py", line 252, in handle_new_match_start
record_stats_worker(MapsHistory()[1])
~~~~~~~~~~~~~^^^
File "/code/rcon/utils.py", line 268, in __getitem__
raise IndexError("Index out of bound")
IndexError: Index out of bound