filter out None in wallet.get_invoices

This commit is contained in:
ThomasV 2019-10-23 05:30:16 +02:00
parent 9ff1bd4110
commit 9fbac40d56

View file

@ -583,6 +583,7 @@ class Abstract_Wallet(AddressSynchronizer):
def get_invoices(self):
out = [self.get_invoice(key) for key in self.invoices.keys()]
out = list(filter(None, out))
out.sort(key=operator.itemgetter('time'))
return out