Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value v4 is missing from api #22

Open
Stake2 opened this issue Apr 17, 2022 · 1 comment
Open

Value v4 is missing from api #22

Stake2 opened this issue Apr 17, 2022 · 1 comment

Comments

@Stake2
Copy link

Stake2 commented Apr 17, 2022

>>> from habitipy import Habitipy, load_conf,DEFAULT_CONF
>>> api = Habitipy(load_conf(DEFAULT_CONF))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\habitipy\api.py", line 192, in __init__
    _node = _node.into(part)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\habitipy\api.py", line 58, in into
    raise IndexError(_("Value {} is missing from api").format(val))  # NOQA: Q000
IndexError: Value v4 is missing from api

But v4 is the latest API version, how to change the module to use it?
I already tried changing this:
current = current or ['api', "v4"]

@asmfreak
Copy link
Owner

You would need to update apidoc.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants