The Python Oracle

How to tell if boto.sqs.Queue.write() succeeded?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Magical Minnie Puzzles

--

Chapters
00:00 Question
01:09 Accepted answer (Score 6)
01:46 Thank you

--

Full question
https://stackoverflow.com/questions/2108...

Question links:
https://github.com/boto/boto/blob/develo...

Accepted answer links:
[SQS API docs]: http://docs.pythonboto.org/en/latest/ref...
[issue]: https://github.com/boto/boto/issues/1985

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #amazonwebservices #boto #amazonsqs

#avk47



ACCEPTED ANSWER

Score 6


The documentation quote you provide comes from the SQS tutorial. The SQS API docs correctly describe the current return value. The SQS tutorial is simply out of date and needs to be corrected. I have created an issue to track this.

If the write fails for any reason, the service will return an HTTP error code which, in turn, will cause boto to raise an SQSError exception. If no exception is raised, the write was successful.