More flake8.
This commit is contained in:
parent
8ba308bf07
commit
c77207a8b8
8 changed files with 20 additions and 22 deletions
|
|
@ -12,7 +12,7 @@ class ReceiptHandleIsInvalid(Exception):
|
|||
|
||||
|
||||
class MessageAttributesInvalid(Exception):
|
||||
status_code = 400
|
||||
status_code = 400
|
||||
|
||||
def __init__(self, description):
|
||||
self.description = description
|
||||
def __init__(self, description):
|
||||
self.description = description
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ def parse_message_attributes(querystring, base='', value_namespace='Value.'):
|
|||
if not value:
|
||||
raise MessageAttributesInvalid("The message attribute '{0}' must contain non-empty message attribute value for message attribute type '{1}'.".format(name[0], data_type[0]))
|
||||
|
||||
message_attributes[name[0]] = {'data_type' : data_type[0], type_prefix.lower() + '_value' : value[0]}
|
||||
message_attributes[name[0]] = {'data_type': data_type[0], type_prefix.lower() + '_value': value[0]}
|
||||
|
||||
index += 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue