K0lb3 / UnityPy

UnityPy is python module that makes it possible to extract/unpack and edit Unity assets
MIT License
810 stars 123 forks source link

Update sorted() call for Python 3.6+. Fallback index for unrecognized types #132

Closed sparr closed 2 years ago

sparr commented 2 years ago

sorted() fix as discussed on Discord. catch fix to resolve this failure mode:

    return export_types_keys.index(type)
ValueError: <ClassIDType.PreloadData: 150> is not in list