From 97ec2e1c603eca8770c44c93e333c529bfe15e95 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 8 Nov 2023 21:24:44 +0000 Subject: [PATCH] Have Device Flags be an empty dict if none set --- pywidevine/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywidevine/device.py b/pywidevine/device.py index 09ce83f..d4d2c5d 100644 --- a/pywidevine/device.py +++ b/pywidevine/device.py @@ -105,7 +105,7 @@ class Device: self.type = self.Types[type_] if isinstance(type_, str) else type_ self.security_level = security_level - self.flags = flags + self.flags = flags or {} self.private_key = RSA.importKey(private_key) self.client_id = ClientIdentification() try: