timothymugayi / boto3-sqs-extended-client-lib

Boto3 SQS Extended Client Library for Python. An extension to the boto3 sqs client that enables sending and receiving messages up to 2GB via Amazon S3. [WARNING: This library is still under development contributors welcome]
Apache License 2.0
27 stars 23 forks source link

FIX: local variable referenced before assignment #17

Open ghost opened 2 years ago

ghost commented 2 years ago

Description

This commit fixes a probable typo error on the function call that sends data to SQS when the message IS NOT large. This happens when we fall on the else condition and the code tries to use a variable that was not assigned. The right variable should be "message", instead of "s3_key_message".

Please, feel free to edit or correct anything, as this is my first pull request.

Fixes # (issue)

PR type

Changelog updated

Breaking changes

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

Checklist: