forked from hkc/mastoposter
Python moment
This commit is contained in:
parent
b789cc6015
commit
7f2e87523c
|
@ -3,7 +3,6 @@ from json import loads
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
from typing import AsyncGenerator
|
from typing import AsyncGenerator
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
from mastoposter.types import Status
|
from mastoposter.types import Status
|
||||||
|
|
||||||
logger = getLogger("sources")
|
logger = getLogger("sources")
|
||||||
|
@ -32,6 +31,7 @@ async def websocket_source(
|
||||||
WebSocketException,
|
WebSocketException,
|
||||||
TimeoutError,
|
TimeoutError,
|
||||||
exceptions.TimeoutError,
|
exceptions.TimeoutError,
|
||||||
|
ConnectionError,
|
||||||
) as e:
|
) as e:
|
||||||
if not reconnect:
|
if not reconnect:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue