Explorar o código

[py3] unorderable NoneType

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
bf9733f7dd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/platforms.py

+ 1 - 1
celery/platforms.py

@@ -90,7 +90,7 @@ def ranges(sequence, end):
     for prev, stop in zip_longest(k, l):
         prev = min(prev + 1, end)
         if prev != stop:
-            if stop > end:
+            if stop and stop > end:
                 yield _range(prev, end)
                 break
             yield _range(prev, end if stop is None else stop)