add status() method to wallets to be used in initial check.

This commit is contained in:
fiatjaf
2020-10-12 22:30:19 -03:00
parent d5d85d16e6
commit b5a07c7ae7
12 changed files with 160 additions and 30 deletions
+1 -1
View File
@@ -39,5 +39,5 @@ async def on_invoice_paid(payment: Payment) -> None:
timeout=40,
)
mark_webhook_sent(payment.payment_hash, r.status_code)
except httpx.RequestError:
except (httpx.ConnectError, httpx.RequestError):
mark_webhook_sent(payment.payment_hash, -1)