fixed formating issues

This commit is contained in:
EC2 Default User 2018-05-21 21:56:31 +00:00
parent 82928fd681
commit c8a66bbe5d

View File

@ -126,9 +126,8 @@ def code(event, context):
if "Items" in response and len(response['Items']) > 0: if "Items" in response and len(response['Items']) > 0:
if response['Items'][0]["public"]: if response['Items'][0]["public"]:
content = urlsafe_b64decode(response['Items'][0]['content']) content = urlsafe_b64decode(response['Items'][0]['content']).decode('utf-8')
return content
return str(content)
else: else:
return { return {
"statusCode": 403, "statusCode": 403,