fixed TypeError

This commit is contained in:
2025-10-27 12:06:14 +01:00
committed by Florian Greistorfer
parent 2c6f8fbcb7
commit 57b6b56388

View File

@@ -68,8 +68,8 @@ class ImageMetadata:
w = from_union([from_int, from_none], obj.get("w"))
h = from_union([from_int, from_none], obj.get("h"))
tags = from_list(from_str, obj.get("tags"))
exifdata = from_union([from_native_dict, from_none], obj.get("exifdata"))
xmp = from_union([from_native_dict, from_none], obj.get("xmp"))
exifdata = from_union([lambda x: from_native_dict(dict, x), from_none], obj.get("exifdata"))
xmp = from_union([lambda x: from_native_dict(dict, x), from_none], obj.get("xmp"))
src = from_str(obj.get("src"))
msrc = from_str(obj.get("msrc"))
name = from_str(obj.get("name"))