averbis / averbis-python-api

Conveniently access the REST API of Averbis products using Python
Apache License 2.0
12 stars 4 forks source link

Create Terminology drops KeyError #42

Closed pwehler-averbis closed 3 years ago

pwehler-averbis commented 3 years ago

Using project.create_terminology will create a terminology, but will not return the terminology. A KeyError for the response objectis triggered.

Triggered by

test = project.create_terminology(terminology_name='Bayer-Drug-Classess', 
                                  label='Bayer-Drug-Classess',
                                  languages=['en'])

Expected behavior Method should create terminology and return terminology object

Error message KeyError response['payload'] Payload does not exist

Please complete the following information:

Additional context Already fixed locally, will push later in the afternoon