Cdm: Fix context availability check in parse_license()

This commit is contained in:
rlaphoenix 2022-07-30 03:11:21 +01:00
parent 71a43a069d
commit 3a15c1050a
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class Cdm:
licence = License() licence = License()
licence.ParseFromString(license_message.msg) licence.ParseFromString(license_message.msg)
context = self.context[licence.id.request_id] context = self.context.get(licence.id.request_id)
if not context: if not context:
raise ValueError("Cannot parse a license message without first making a license request") raise ValueError("Cannot parse a license message without first making a license request")