takos22 / codingame

Wrapper for the undocumented CodinGame API. Can be used both synchronously and asynchronlously.
https://codingame.readthedocs.io
MIT License
21 stars 7 forks source link

[BUG] KeyError when running .get_clash_of_code #29

Closed neudheh closed 7 months ago

neudheh commented 7 months ago

Describe the bug

There is a KeyError when running Client.get_clash_of_code

  File "../codingame/client/async_.py", line 127, in get_clash_of_code
    return ClashOfCode(self._state, data)
  File "../codingame/clash_of_code.py", line 120, in __init__
    self.public = data["publicClash"]
KeyError: 'publicClash'

Expected behavior

It was supposed to return information about the provided clash of code

Environment information: