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'