GandaG/pynxm

Error with default argument for game_list()

leontristain opened this issue · 0 comments

First thanks for the package!

FWIW:

Traceback (most recent call last):
  File ".\pynxm_test.py", line 9, in <module>
    print(nexus.game_list())
  File "D:\git\skyrim-builder\venv\lib\site-packages\pynxm.py", line 190, in game_list
    "get", "games.json", payload={"include_unapproved": include_unapproved}
  File "D:\git\skyrim-builder\venv\lib\site-packages\pynxm.py", line 117, in _make_request
    raise RequestError("Status Code {} - {}".format(status_code, msg))
pynxm.RequestError: Status Code 422 - Invalid parameter 'include_unapproved' value "False": Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.

Looks like values get cast to strings and if a word boolean needs to have lower case first letter.

Reproducible with latest pip install pynxm (0.1.0)