Преглед на файлове

Missing (explicit) return statement for method.

Vincent Driessen преди 14 години
родител
ревизия
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",
                 return {"exchange": "video",
                         "exchange_type": "topic",
                         "exchange_type": "topic",
                         "routing_key": "video.compress"}
                         "routing_key": "video.compress"}
+            return None
 
 
 If you return the ``queue`` key, it will expand with the defined settings of
 If you return the ``queue`` key, it will expand with the defined settings of
 that queue in ``CELERY_QUEUES``::
 that queue in ``CELERY_QUEUES``::