def delete_payment(self, payment_hash_hex: str):
    try:
        with self.lock:
            del self.payments[payment_hash_hex]
    except KeyError:
        return
    self.wallet.save_db()
def delete_payment(self, payment_hash_hex: str):
    try:
        with self.lock:
            del self.payments[payment_hash_hex]
    except KeyError:
        return
    self.wallet.save_db()