Parcourir la source

Fixed a bug with parsing the message options (mandatory, routing_key,
immediate, priority)

Ask Solem il y a 16 ans
Parent
commit
3b0e993410
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      celery/messaging.py

+ 1 - 1
celery/messaging.py

@@ -13,7 +13,7 @@ from celery.serialization import pickle
 MSG_OPTIONS = ("mandatory", "priority",
                "immediate", "routing_key")
 
-get_msg_options = mitemgetter(MSG_OPTIONS)
+get_msg_options = mitemgetter(*MSG_OPTIONS)
 
 extract_msg_options = lambda d: dict(zip(MSG_OPTIONS, get_msg_options(d)))