mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
Merge pull request #3256 from ariard/fix_clearrequests
[fix clearrequests] dictionary changed size during iteration
This commit is contained in:
commit
ce4be1f8f2
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ class Commands:
|
|||
@command('w')
|
||||
def clearrequests(self):
|
||||
"""Remove all payment requests"""
|
||||
for k in self.wallet.receive_requests.keys():
|
||||
for k in list(self.wallet.receive_requests.keys()):
|
||||
self.wallet.remove_payment_request(k, self.config)
|
||||
|
||||
@command('n')
|
||||
|
|
Loading…
Add table
Reference in a new issue