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

Show clear message when the same study name is existed on advisor server #31

Open
stvreumi opened this issue Feb 22, 2019 · 0 comments
Open

Comments

@stvreumi
Copy link

If the study name of the client is existed on the server, the client will output following error.

Traceback (most recent call last):
File "example.py", line 28, in <module>
  study = client.create_study(name, study_configuration)
File "/Users/stvreumi/dev/crypto/lib/python3.6/site-packages/advisor_client/client.py", line 36, in create_study
  study = Study.from_dict(response.json()["data"])
KeyError: 'data'

Because of the response only have following key and value
{'error': 'The study Study exists'}

Maybe client can show clear message to user that using same study name causes error.

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