Skip to content

Commit

Permalink
chore: renaming of PaymentFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Apr 2, 2024
1 parent 3ba4507 commit 2a974f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"short_description": "Connect a Bleskomat ATM to an lnbits",
"tile": "/bleskomat/static/image/bleskomat.png",
"contributors": ["chill117"],
"min_lnbits_version": "0.11.0"
"min_lnbits_version": "0.12.5"
}
4 changes: 2 additions & 2 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pydantic import BaseModel, validator

from lnbits import bolt11
from lnbits.core.services import PaymentFailure, pay_invoice
from lnbits.core.services import PaymentError, pay_invoice

from . import db
from .exchange_rates import exchange_rate_providers, fiat_currencies
Expand Down Expand Up @@ -122,7 +122,7 @@ async def execute_action(self, query):
await pay_invoice(
wallet_id=self.wallet, payment_request=query["pr"]
)
except (ValueError, PermissionError, PaymentFailure) as e:
except (ValueError, PermissionError, PaymentError) as e:
raise LnurlValidationError("Failed to pay invoice: " + str(e))
except Exception as e:
logger.error(str(e))
Expand Down

0 comments on commit 2a974f7

Please sign in to comment.