diff --git a/mastoposter/sources.py b/mastoposter/sources.py index 67e3edb..9af446a 100644 --- a/mastoposter/sources.py +++ b/mastoposter/sources.py @@ -21,6 +21,6 @@ async def websocket_source( raise Exception(event["error"]) if event["event"] == "update": yield Status.from_dict(loads(event["payload"])) - except WebSocketException: + except (WebSocketException, TimeoutError): if not reconnect: raise