fix: broken lnurl error message on amount limits (#96)

This commit is contained in:
dni ⚡ 2025-08-14 12:12:00 +02:00 committed by GitHub
commit f9ee067e88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,12 +61,12 @@ async def api_lnurl_callback(
amount = amount amount = amount
if amount < minimum: if amount < minimum:
return LnurlErrorResponse( return LnurlErrorResponse(
reason=f"Amount {amount} is smaller than minimum {min}." reason=f"Amount {amount} is smaller than minimum {minimum}."
) )
elif amount > maximum: elif amount > maximum:
return LnurlErrorResponse( return LnurlErrorResponse(
reason=f"Amount {amount} is greater than maximum {max}." reason=f"Amount {amount} is greater than maximum {maximum}."
) )
comment = request.query_params.get("comment") comment = request.query_params.get("comment")