Fix issue if pool stats have not updated yet

This commit is contained in:
Joshua Boniface 2021-12-28 21:03:10 -05:00
parent 02138974fa
commit 46896c593e
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ def get_list_pool(zkhandler, limit, is_fuzzy=True):
for future in futures:
pool_data_list.append(future.result())
return True, sorted(pool_data_list, key=lambda x: int(x["stats"]["id"]))
return True, sorted(pool_data_list, key=lambda x: int(x["stats"].get("id", 0)))
#