fix(drm): end a licence with no usable key in one line for every DRM system

This commit is contained in:
imSp4rky
2026-11-24 17:13:08 -07:00
parent d954f61100
commit 4692e6bb96
6 changed files with 69 additions and 19 deletions
@@ -10,6 +10,7 @@ import base64
from types import SimpleNamespace
from uuid import UUID
import click
import pytest
from pyplayready.system.pssh import PSSH as PRPSSH
from pywidevine.pssh import PSSH as WvPSSH
@@ -113,5 +114,5 @@ def test_failed_licence_without_injected_keys_still_raises(server_env):
get_widevine_license=lambda **_: b"garbage",
)
with pytest.raises(ValueError, match="not a licence"):
with pytest.raises(click.ClickException, match="not a licence"):
handlers.handle_single_server_cdm(service, SimpleNamespace(), track, pssh.dumps(), "widevine", None)