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
@@ -195,7 +195,7 @@ class SparkWallet(Wallet):
data = json.loads(line[5:])
if "pay_index" in data and data.get("status") == "paid":
yield data["label"]
except (OSError, httpx.ReadError, httpx.ConnectError):
except (OSError, httpx.ReadError, httpx.ConnectError, httpx.ReadTimeout):
pass
print("lost connection to spark /stream, retrying in 5 seconds")