-
Notifications
You must be signed in to change notification settings - Fork 169
Description
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)