Added if webhook to stop 500 in webhook absence
This commit is contained in:
parent
52956a62a2
commit
ae59c74c24
1 changed files with 16 additions and 15 deletions
|
|
@ -54,6 +54,7 @@ async def set_ticket_paid(payment_hash: str) -> Tickets:
|
|||
)
|
||||
|
||||
ticket = await get_ticket(payment_hash)
|
||||
if formdata.webhook:
|
||||
async with httpx.AsyncClient() as client:
|
||||
try:
|
||||
r = await client.post(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue