소스 검색

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``::