Merge pull request #2554 from aacampbell/match_removal_of_smart_quote

Match AWS's change from smart-quote to ASCII quote
This commit is contained in:
Mike Grima 2019-11-15 10:33:05 -08:00 committed by GitHub
commit dea4599581
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 26 deletions

View file

@ -14,23 +14,21 @@ class ResourceNotFoundException(SecretsManagerClientError):
)
# Using specialised exception due to the use of a non-ASCII character
class SecretNotFoundException(SecretsManagerClientError):
def __init__(self):
self.code = 404
super(SecretNotFoundException, self).__init__(
"ResourceNotFoundException",
message="Secrets Manager can\u2019t find the specified secret.",
message="Secrets Manager can't find the specified secret.",
)
# Using specialised exception due to the use of a non-ASCII character
class SecretHasNoValueException(SecretsManagerClientError):
def __init__(self, version_stage):
self.code = 404
super(SecretHasNoValueException, self).__init__(
"ResourceNotFoundException",
message="Secrets Manager can\u2019t find the specified secret "
message="Secrets Manager can't find the specified secret "
"value for staging label: {}".format(version_stage),
)