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:
commit
dea4599581
3 changed files with 12 additions and 26 deletions
|
|
@ -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),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue