diff --git a/beet_observer/data_pack.py b/beet_observer/data_pack.py index 9c15d81..87ff4c6 100644 --- a/beet_observer/data_pack.py +++ b/beet_observer/data_pack.py @@ -214,8 +214,10 @@ def gen_registry_overlay( else: # check if files are exactly the same try: - if isinstance(registry[name],Structure): - registry_overlay[name].data['DataVersion'] = registry[name].data['DataVersion'] + if isinstance(registry[name], Structure): + registry_overlay[name].data["DataVersion"] = registry[name].data[ + "DataVersion" + ] if registry[name].data != registry_overlay[name].data: # move file from overlay pack to overlay in build pack ctx.data.overlays[overlay_dir][name] = registry_overlay[name]