The requested vocabulary couldn't be found. Check the vocabulary name and try your request again.
Package:
moto
4910
Exception Class:
BadRequestException
Raise code
"Check the vocabulary name and try your request again."
)
def delete_vocabulary(self, vocabulary_name):
try:
del self.vocabularies[vocabulary_name]
except KeyError:
raise BadRequestException(
message="The requested vocabulary couldn't be found. Check the vocabulary name and try your request again."
)
def delete_medical_vocabulary(self, vocabulary_name):
try:
del self.medical_vocabularies[vocabulary_name]
except KeyError:
Links to the raise (2)
https://github.com/spulec/moto/blob/eef21767f89b5ea550fd6af741967e331c3ac258/moto/transcribe/models.py#L713 https://github.com/spulec/moto/blob/eef21767f89b5ea550fd6af741967e331c3ac258/moto/transcribe/models.py#L721NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix