From 3a15c1050ab2fec040809732abdd17d540c951a6 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 30 Jul 2022 03:11:21 +0100 Subject: [PATCH] Cdm: Fix context availability check in parse_license() --- pywidevine/cdm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywidevine/cdm.py b/pywidevine/cdm.py index db883cc..45abd68 100644 --- a/pywidevine/cdm.py +++ b/pywidevine/cdm.py @@ -223,7 +223,7 @@ class Cdm: licence = License() licence.ParseFromString(license_message.msg) - context = self.context[licence.id.request_id] + context = self.context.get(licence.id.request_id) if not context: raise ValueError("Cannot parse a license message without first making a license request")