added missing yield

This commit is contained in:
Lex Berezhny 2018-08-16 17:46:46 -04:00 committed by Jack Robison
parent 4384a5f022
commit d6d69a46d4
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -151,7 +151,7 @@ class LbryWalletManager(BaseWalletManager):
page_size = kwargs.get('page_size', 10) page_size = kwargs.get('page_size', 10)
check_cache = kwargs.get('check_cache', False) # TODO: put caching back (was force_refresh parameter) check_cache = kwargs.get('check_cache', False) # TODO: put caching back (was force_refresh parameter)
ledger = self.default_account.ledger # type: MainNetLedger ledger = self.default_account.ledger # type: MainNetLedger
results = ledger.resolve(page, page_size, *uris) results = yield ledger.resolve(page, page_size, *uris)
yield self.old_db.save_claims_for_resolve( yield self.old_db.save_claims_for_resolve(
(value for value in results.values() if 'error' not in value)) (value for value in results.values() if 'error' not in value))
defer.returnValue(results) defer.returnValue(results)