Procházet zdrojové kódy

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

Ask Solem před 8 roky
rodič
revize
8e5ea5cc02
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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)