码迷,mamicode.com
首页 > 其他好文 > 详细

rabbitmq报错type

时间:2019-01-12 01:10:30      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:用法   报错   code   hang   keyword   color   error:   expec   got   

TypeError: exchange_declare() got an unexpected keyword argument ‘type‘

原因应该为pika版本不同导致的用法不同,解决方法为把type换成exchange_type

 

channel.exchange_declare(exchange=direct_log,exchange_type=direct)

 

rabbitmq报错type

标签:用法   报错   code   hang   keyword   color   error:   expec   got   

原文地址:https://www.cnblogs.com/z-x-y/p/10258272.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!