Skip to content

hello_world_producer_pubconfirm.py #9

Description

@mgruenberg

hello_world_producer_pubconfirm.py fails with the following when using pika 0.98

Traceback (most recent call last):
File "/usr/lib/python2.7/pdb.py", line 1314, in main
pdb._runscript(mainpyfile)
File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
self.run(statement)
File "/usr/lib/python2.7/bdb.py", line 387, in run
exec cmd in globals, locals
File "", line 1, in
File "hello_world_producer_pubconfirm.py", line 12, in
import pika, sys
TypeError: confirm_delivery() got an unexpected keyword argument 'callback'

The issue is its using a BlockingConnection and with a blocking connection it does not allow for a callback:

/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py(431)confirm_delivery()

def confirm_delivery(self, nowait=False)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions