Ikabot-Collective / ikabot

A Python-based bot designed for automating tasks in the game Ikariam
https://discord.com/invite/3hyxPRj
MIT License
97 stars 65 forks source link

Sending materials to other player city #220

Closed lkyglc closed 8 months ago

lkyglc commented 8 months ago

Bug explanation

hi when trying to send resource to other city I am getting this error is there any other one getting too . Process sendResources: Traceback (most recent call last): File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ubuntu/ikabot/ikabot/function/sendResources.py", line 51, in sendResources cityD = chooseCity(session, foreign=True) File "/home/ubuntu/ikabot/ikabot/helpers/pedirInfo.py", line 136, in chooseCity return chooseForeignCity(session) File "/home/ubuntu/ikabot/ikabot/helpers/pedirInfo.py", line 175, in chooseForeignCity if city['type'] == 'city' and city['state'] == '' and city['ownerName'] != session.username: KeyError: 'ownerName'

Operating System

Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-91-generic x86_64)

Ikabot installation

I installed Ikabot with pip

Ikabot version

latest

Python version

latest

ikagod commented 8 months ago

This was fixed yesterday in b9f18d0cb3b1a605ffe7ff381b6c9a5480c27372, wait for new version to come out.

lkyglc commented 8 months ago

Thank you for your information