Sfoglia il codice sorgente

Merge pull request #1831 from eyvoro/patch-1

Fixed basic.publish command in celery amqp program
Ask Solem Hoel 11 anni fa
parent
commit
59e44ae630
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      celery/bin/amqp.py

+ 1 - 1
celery/bin/amqp.py

@@ -175,7 +175,7 @@ class AMQShell(cmd.Cmd):
         'basic.get': Spec(('queue', str),
                           ('no_ack', bool, 'off'),
                           returns=dump_message),
-        'basic.publish': Spec(('msg', Message),
+        'basic.publish': Spec(('msg', str),
                               ('exchange', str),
                               ('routing_key', str),
                               ('mandatory', bool, 'no'),