Commit 9ca3b984 by Kálmán Viktor

vm: fix logging if result is None

parent e241ad50
...@@ -57,7 +57,7 @@ def get_queues(): ...@@ -57,7 +57,7 @@ def get_queues():
inspect = celery.control.inspect() inspect = celery.control.inspect()
inspect.timeout = 0.5 inspect.timeout = 0.5
result = inspect.active_queues() result = inspect.active_queues()
logger.debug('Queue list of length %d cached.', len(result)) logger.debug('Queue list of length %d cached.', result and len(result))
cache.set(key, result, 10) cache.set(key, result, 10)
return result return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment