diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index 04bcfa7..c36b47f 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -112,7 +112,7 @@ class PSSH: if isinstance(data, bytes): try: data = Box.parse(data) - except construct.ConstructError: + except (IOError, construct.ConstructError): if strict: try: cenc_header = WidevinePsshData()