cenkalti / kuyruk

⚙️ Simple task queue for Python
https://kuyruk.readthedocs.org/
MIT License
231 stars 17 forks source link

[AMQP deprecation] The .frame_writer attribute on the connection was accessed before the connection was established #41

Closed frol closed 7 years ago

frol commented 7 years ago

Please, resolve AMQP deprecation warning:

/usr/lib/python3.5/site-packages/amqp/connection.py:304: AMQPDeprecationWarning: The .frame_writer attribute on the connection was accessed before
the connection was established.  This is supported for now, but will
be deprecated in amqp 2.2.0.

Since amqp 2.0 you have to explicitly call Connection.connect()
before using the connection.

  W_FORCE_CONNECT.format(attr=attr)))
frol commented 7 years ago

Yes, the deprecation warning is gone! @cenkalti Thank you!