We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6ad34e commit 2f803b7Copy full SHA for 2f803b7
src/youtubeaio/youtube.py
@@ -146,7 +146,7 @@ async def _build_generator(
146
_first = False
147
except asyncio.TimeoutError as exc:
148
msg = "Timeout occurred"
149
- raise YouTubeAPIError(msg) from exc
+ raise YouTubeBackendError(msg) from exc
150
151
async def set_user_authentication(
152
self,
tests/test_youtube.py
@@ -56,7 +56,7 @@ async def response_handler(_: BaseRequest) -> Response:
56
)
57
58
youtube = YouTube(session_timeout=1)
59
- with pytest.raises(YouTubeAPIError):
+ with pytest.raises(YouTubeBackendError):
60
assert await youtube.get_video(video_id="Ks-_Mh1QhMc")
61
await youtube.close()
62
0 commit comments