Page MenuHomeDevCentral

Pika: exchange_declare doesn't recognize type argument
Closed, ResolvedPublic

Description

Ysul
$ notifications                                                                                                (git)-[aphlict] 
Traceback (most recent call last):
  File "/usr/local/bin/notifications", line 216, in <module>
    run_application()
  File "/usr/local/bin/notifications", line 203, in run_application
    app = initialize_application()
  File "/usr/local/bin/notifications", line 155, in initialize_application
    container['queue'] = get_queue(container['channel'], container['exchange'])
  File "/usr/local/bin/notifications", line 136, in get_queue
    return get_broker_queue(channel, exchange)
  File "/usr/local/bin/notifications", line 63, in get_broker_queue
    channel.exchange_declare(exchange=exchange, type='topic', durable=True)
TypeError: exchange_declare() got an unexpected keyword argument 'type'

Event Timeline

dereckson triaged this task as Unbreak Now! priority.Sep 7 2018, 19:01
dereckson created this task.
dereckson moved this task from Backlog to Bugs on the Notifications center board.

Pika is installed through py36-pika-0.12.0

dereckson added a comment.EditedSep 8 2018, 18:32

The argument is now exchange_type.

dereckson claimed this task.Sep 8 2018, 18:32