Skip to content

Commit 0e9db39

Browse files
committed
Add audio loaded error
1 parent d941a6f commit 0e9db39

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

twitchio/ext/overlays/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from twitchio import Colour
3737

3838
from .enums import Animation, AnimationSpeed, EventPosition, Font
39-
from .exceptions import AudioAlreadyLoadedError, BlueprintError
39+
from .exceptions import AudioLoadedError, BlueprintError
4040

4141

4242
if TYPE_CHECKING:
@@ -369,7 +369,7 @@ def set_position(self, position: EventPosition, /) -> Self:
369369

370370
async def mount_audio(self, name: str, *, path: os.PathLike[str]) -> ...:
371371
if name in self._audio_paths:
372-
raise AudioAlreadyLoadedError(f"Audio with the name '{name}' has already been added to {self!r}.")
372+
raise AudioLoadedError(f"Audio with the name '{name}' has already been added to {self!r}.")
373373

374374
self._audio_paths[name] = path
375375

twitchio/ext/overlays/exceptions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from twitchio import TwitchioException
2626

2727

28-
__all__ = ("OverlayException", "OverlayLoadError")
28+
__all__ = ("AudioLoadedError", "BlueprintError", "OverlayException", "OverlayLoadError", "OverlayNotSetupError")
2929

3030

3131
class OverlayException(TwitchioException): ...
@@ -38,3 +38,6 @@ class OverlayNotSetupError(OverlayException): ...
3838

3939

4040
class BlueprintError(OverlayException): ...
41+
42+
43+
class AudioLoadedError(OverlayException): ...

0 commit comments

Comments
 (0)