Open bitmaks opened 4 years ago
Hi @aaaakshat Nice work, can you post screenshots describing the resolution of this issue.
Hi @pushkalkatara, I've added a JSONDecodeError exception to test for simple json errors such as the file existing but being corrupt/empty. I've also added a KeyError exception in case the "token" key is not present in the token.json file.
Below is the screenshot showing an empty token.json file as well as a corrupt token.json file.
@aaaakshat Can you please post the screenshot of get_token command.
Hi @pushkalkatara, I already posted the screenshots for this command, however, I've reattached the screenshot below along with a valid case.
@aaaakshat Nice work. can we be more specific with the error message for the user to understand? Like,
Token file was found empty, Please set the token using the command evalai set_token <token>
.Token file is corrupt, please reset the token using the command evalai set_token <token>
.
This will now ensure that the token.json file exists and has a valid token.