Fix issue when page has nothing in it

This commit is contained in:
Sumner Evans
2019-10-18 07:11:11 -06:00
parent a18ee58582
commit fbdc8113b7

View File

@@ -493,7 +493,9 @@ class CacheManager(metaclass=Singleton):
while True:
yield 'network barrier'
before_download()
page = server_fn(type_, size=page_size, offset=offset).album
page = (
server_fn(type_, size=page_size, offset=offset).album
or [])
with self.cache_lock:
if not self.cache[cache_name].get(type_):