mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
fix for unparsable bytes
This commit is contained in:
@ -145,7 +145,11 @@ def parse(
|
||||
|
||||
if jc.utils.has_data(data):
|
||||
|
||||
raw_output = plistlib.loads(data)
|
||||
try:
|
||||
raw_output = plistlib.loads(data)
|
||||
except plistlib.InvalidFileException:
|
||||
pass
|
||||
|
||||
raw_output = _fix_objects(raw_output)
|
||||
|
||||
return raw_output if raw else _process(raw_output)
|
||||
|
Reference in New Issue
Block a user