Skip to content

Commit d1687fc

Browse files
committed
actually restart on bad frame
1 parent 9abe3ce commit d1687fc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
on_rtd = os.environ.get("READTHEDOCS") == "True"
2828
project = "TwitchIO"
29-
copyright = "2023, TwitchIO"
29+
copyright = "2024, TwitchIO"
3030
author = "PythonistaGuild"
3131

3232
# The full version, including alpha/beta/rc tags

twitchio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
__title__ = "TwitchIO"
2828
__author__ = "TwitchIO, PythonistaGuild"
2929
__license__ = "MIT"
30-
__copyright__ = "Copyright 2017-2022 (c) TwitchIO"
31-
__version__ = "2.8.2"
30+
__copyright__ = "Copyright 2017-present (c) TwitchIO"
31+
__version__ = "2.9.1"
3232

3333
from .client import Client
3434
from .user import *

twitchio/ext/eventsub/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ async def pump(self) -> None:
212212
except TypeError as e:
213213
logger.warning(f"Received bad frame: {e.args[0]}")
214214

215-
if e.args[0] is None: # websocket was closed, reconnect
215+
if "257" in e.args[0]: # websocket was closed, reconnect
216216
logger.info("Known bad frame, restarting connection")
217217
await self.connect()
218218
return

0 commit comments

Comments
 (0)