1
0

Merge pull request #3256 from ariard/fix_clearrequests

[fix clearrequests] dictionary changed size during iteration
This commit is contained in:
ThomasV
2017-11-09 18:06:50 +01:00
committed by GitHub

View File

@@ -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')