diff --git a/lib/commands.py b/lib/commands.py index d01c6810..b81e58c2 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -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')