瀏覽代碼

Missing (explicit) return statement for method.

Vincent Driessen 15 年之前
父節點
當前提交
87837bed76
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docs/userguide/routing.rst

+ 1 - 0
docs/userguide/routing.rst

@@ -481,6 +481,7 @@ All you need to define a new router is to create a class with a
                 return {"exchange": "video",
                         "exchange_type": "topic",
                         "routing_key": "video.compress"}
+            return None
 
 If you return the ``queue`` key, it will expand with the defined settings of
 that queue in ``CELERY_QUEUES``::