Skip to content

KeyError in Guild Battle Logger #77

Description

@feralfenrir

After a guild battle is done, there seems to be an exception which is not handled:

INFO:SWProxy:Found Summoners War API request : BattleGuildWarResult
ERROR:root:Exception while executing plugin "Guild Battle Logger": 2
Traceback (most recent call last):
  File "SWPlugin.py", line 42, in call_plugins
  File "D:\Games\Tools\SWProxy\plugins\GuildBattleLogger.py", line 65, in process_request
    return self.log_end_battle(req_json, resp_json, config)
  File "D:\Games\Tools\SWProxy\plugins\GuildBattleLogger.py", line 147, in log_end_battle
    log_entry['opteam%s' % i] = monster_name(opp_monster_list[i])
KeyError: 2

https://wiki.python.org/moin/KeyError

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions