Skip to content

Fix error if API returns return code 1 as int#12

Merged
artemlos merged 1 commit intoCryptolens:masterfrom
tgamauf:error-blocked-trial-key
Oct 4, 2019
Merged

Fix error if API returns return code 1 as int#12
artemlos merged 1 commit intoCryptolens:masterfrom
tgamauf:error-blocked-trial-key

Conversation

@tgamauf
Copy link
Contributor

@tgamauf tgamauf commented May 28, 2019

The REST-API returns the return code 1 as a string in most situations, but as an integer in others. The Python-API cannot handle it if an integer is returned.

Steps to reproduce:

  1. Create a trial key for machine using the Python-API
  2. Activate trial key for machine using the Python-API
  3. Block trial key on the web interface
  4. Create a new trial key using the Python-API

This is a fix for this behavior.

A note on the side - I would consider this inconsistent behavior of the API a bug, which should be fixed in the REST-API ultimatively.

@artemlos artemlos self-requested a review June 3, 2019 08:40
@artemlos artemlos added the bug Something isn't working label Jun 3, 2019
@artemlos artemlos merged commit ceeee0c into Cryptolens:master Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants