black formatting

This commit is contained in:
Kristjan
2020-12-31 18:50:16 +01:00
parent 128888be92
commit c082c953f3
12 changed files with 98 additions and 43 deletions
+5 -1
View File
@@ -38,7 +38,11 @@ async def dispatch_webhook(payment: Payment):
async with httpx.AsyncClient() as client:
data = payment._asdict()
try:
r = await client.post(payment.webhook, json=data, timeout=40,)
r = await client.post(
payment.webhook,
json=data,
timeout=40,
)
await mark_webhook_sent(payment, r.status_code)
except (httpx.ConnectError, httpx.RequestError):
await mark_webhook_sent(payment, -1)