Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

typo in boto/sqs/batchresults.py #648

Closed
mssrdp opened this issue Mar 19, 2012 · 0 comments
Closed

typo in boto/sqs/batchresults.py #648

mssrdp opened this issue Mar 19, 2012 · 0 comments

Comments

@mssrdp
Copy link

mssrdp commented Mar 19, 2012

Looks like line 88 of boto/sqs/batchresults.py should read:

  self.errors.append(entry)

rather than

  self.results.errors(entry)

I'm seeing an occasional exception when AWS chokes on a batch load.

...

File "/usr/local/lib/python2.6/dist-packages/boto-2.3.0-py2.6.egg/boto/sqs/connection.py", line 248, in send_message_batch
queue.id, verb='POST')
File "/usr/local/lib/python2.6/dist-packages/boto-2.3.0-py2.6.egg/boto/connection.py", line 911, in get_object
xml.sax.parseString(body, h)
File "/usr/lib/python2.6/xml/sax/init.py", line 49, in parseString
parser.parse(inpsrc)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 301, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/usr/local/lib/python2.6/dist-packages/boto-2.3.0-py2.6.egg/boto/handler.py", line 33, in startElement
new_node = self.nodes[-1][1].startElement(name, attrs, self.connection)
File "/usr/local/lib/python2.6/dist-packages/boto-2.3.0-py2.6.egg/boto/sqs/batchresults.py", line 88, in startElement
self.results.errors(entry)
AttributeError: 'list' object has no attribute 'errors'

msabramo pushed a commit to msabramo/boto that referenced this issue Nov 28, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants