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

No information shown in the widget and traceback on credit_usage #34

Open
aegiap opened this issue Jan 25, 2017 · 0 comments
Open

No information shown in the widget and traceback on credit_usage #34

aegiap opened this issue Jan 25, 2017 · 0 comments

Comments

@aegiap
Copy link
Contributor

aegiap commented Jan 25, 2017

When I start /usr/bin/gwidget, the output show this traceback and the GTK widget does not show any information about my products (after a couple of minutes).

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gandi/widget/__init__.py", line 145, in display_elements
    items = element.display(elements)
  File "/usr/lib/python2.7/dist-packages/gandi/widget/iaas.py", line 39, in display
    account['credit_usage'])
KeyError: 'credit_usage'

Using a python shell on Gandi public API with my account, I got:

>>> api.hosting.rating.list(tok)
[]

>>> api.hosting.account.info(tok)['credits']
1784120

>>> api.hosting.account.info(tok)['average_credit_cost']
0.0

version installed:

  • python-gandi-widget 0.3
  • python-gandicli 0.19
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

1 participant