expect more errors from SSE connection.

This commit is contained in:
fiatjaf
2021-04-21 23:27:57 -03:00
parent daff019920
commit 232de067a4
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ class LntxbotWallet(Wallet):
data = json.loads(line[5:])
if "payment_hash" in data and data.get("msatoshi") > 0:
yield data["payment_hash"]
except (OSError, httpx.ReadError):
except (OSError, httpx.ReadError, httpx.ReadTimeout, httpx.ConnectError):
pass
print("lost connection to lntxbot /payments/stream, retrying in 5 seconds")