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

When access is denied, Exception tries to show digital ocean error response, but errors out instead with KeyErrror #10

Closed
xela7 opened this issue Sep 11, 2013 · 1 comment

Comments

@xela7
Copy link
Contributor

xela7 commented Sep 11, 2013

in digitalocean/Manager.py(19)__call_api()

22 if data['status'] != "OK":
23 raise Exception(data[u'error_message'])

*** KeyError: u'error_message'

instropecting the data variable:

(Pdb) data
{u'status': u'ERROR', u'message': u'Access Denied'}

so probably need to show message instead of error_message.

@koalalorenzo
Copy link
Owner

Thx! Problem fixed with the last release even on other API calls ( 0.4.2 #11 ) 👯

:D

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