From c765cc1c230fc69878b7f7d174b0396d5b3357cd Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sun, 22 Mar 2026 16:25:01 -0300 Subject: [PATCH] Move and simplify VotifyNoCdmException --- votify/interface/exceptions.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/votify/interface/exceptions.py b/votify/interface/exceptions.py index e780efa..f79c8e0 100644 --- a/votify/interface/exceptions.py +++ b/votify/interface/exceptions.py @@ -7,6 +7,11 @@ class VotifyInterfaceException(VotiyException): pass +class VotifyNoCdmException(VotifyInterfaceException): + def __init__(self): + super().__init__("Content requires a CDM but no .wvd file was provided") + + class VotifyUrlParseException(VotifyInterfaceException): def __init__(self, url: str): super().__init__(f"Failed to parse Spotify URL: {url}") @@ -45,15 +50,6 @@ class VotifyMediaFlatFilterException(VotifyMediaException): self.result = result -class VotifyNoCdmException(VotifyMediaException): - def __init__(self, media_id: str, media_metadata: dict | None = None): - super().__init__( - "Content requires a CDM but no .wvd file was provided", - media_id=media_id, - media_metadata=media_metadata, - ) - - class VotifyMediaNotFoundException(VotifyMediaException): def __init__(self, media_id: str, media_metadata: dict | None = None): super().__init__(