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

Implement Submission error handling in EvalAI-CLI #236

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Implement Submission error handling in EvalAI-CLI #236

wants to merge 16 commits into from

Conversation

jayaike
Copy link
Contributor

@jayaike jayaike commented Dec 28, 2019

What was causing the issue was that the reponse.json() had no attribute of error in it hence it was throwing an error

@pushkalkatara
Copy link

@nsjcorps Please post screenshots of the above CLI command.

if "error" in response.json():
echo(
style(
"\nError: {}\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

"\nFailed to make submission with error: {}\n"

Copy link
Member

@krtkvrm krtkvrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

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

Successfully merging this pull request may close these issues.

None yet

3 participants