Added if webhook to stop 500 in webhook absence

This commit is contained in:
benarc 2020-12-01 22:35:06 +00:00
parent 52956a62a2
commit ae59c74c24

View file

@ -54,6 +54,7 @@ async def set_ticket_paid(payment_hash: str) -> Tickets:
) )
ticket = await get_ticket(payment_hash) ticket = await get_ticket(payment_hash)
if formdata.webhook:
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client:
try: try:
r = await client.post( r = await client.post(