Преглед изворни кода

Fixes None and int type comparison in apps/worker.py. Closes #3641

Ask Solem пре 8 година
родитељ
комит
8e5ea5cc02
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      celery/apps/worker.py

+ 2 - 0
celery/apps/worker.py

@@ -185,6 +185,8 @@ class Worker(WorkController):
         )
 
     def extra_info(self):
+        if self.loglevel is None:
+            return
         if self.loglevel <= logging.INFO:
             include_builtins = self.loglevel <= logging.DEBUG
             tasklist = self.tasklist(include_builtins=include_builtins)