Closed susikaman closed 5 months ago
The constructionList returns an error as soon as an upgrade has been started. Happens in 2 different towns of the same account.
{ 'date': '2024-01-29_08-17-51', 'level': 2, 'message': 'MESSAGE TO TG BOT: Error in:\n' '\n' 'Upgrade building\n' 'City: CityNameHere\n' 'Building: Carpenter. From 45, to 50\n' 'Cause:\n' 'Traceback (most recent call last):\n' ' File "ikabot\function\constructionList.py", line 590, in ' 'constructionList\n' ' File "ikabot\function\constructionList.py", line 89, in ' 'expandBuilding\n' "KeyError: 'upgradeTo'\n", 'module': 'ikabot.helpers.botComm', 'pid': 5760, 'request_history': 'H4sIAIRDt2UC//PLz0sFAPGvot8EAAAA', 'traceback': 'Traceback (most recent call last):\n' ' File "ikabot\function\constructionList.py", line 590, in ' 'constructionList\n' ' File "ikabot\function\constructionList.py", line 89, in ' 'expandBuilding\n' "KeyError: 'upgradeTo'\n"}
Windows Server 2019
I downloaded the pre-built Windows binary
Latest
Python 3.10.6
THis issue was fixed: https://github.com/physics-sec/ikabot/commit/b18ac981bd471e9f5df50317fbbf272d318b8cc4
Bug explanation
The constructionList returns an error as soon as an upgrade has been started. Happens in 2 different towns of the same account.
{ 'date': '2024-01-29_08-17-51', 'level': 2, 'message': 'MESSAGE TO TG BOT: Error in:\n' '\n' 'Upgrade building\n' 'City: CityNameHere\n' 'Building: Carpenter. From 45, to 50\n' 'Cause:\n' 'Traceback (most recent call last):\n' ' File "ikabot\function\constructionList.py", line 590, in ' 'constructionList\n' ' File "ikabot\function\constructionList.py", line 89, in ' 'expandBuilding\n' "KeyError: 'upgradeTo'\n", 'module': 'ikabot.helpers.botComm', 'pid': 5760, 'request_history': 'H4sIAIRDt2UC//PLz0sFAPGvot8EAAAA', 'traceback': 'Traceback (most recent call last):\n' ' File "ikabot\function\constructionList.py", line 590, in ' 'constructionList\n' ' File "ikabot\function\constructionList.py", line 89, in ' 'expandBuilding\n' "KeyError: 'upgradeTo'\n"}
Operating System
Windows Server 2019
Ikabot installation
I downloaded the pre-built Windows binary
Ikabot version
Latest
Python version
Python 3.10.6