diff --git a/cognite_toolkit/_cdf_tk/commands/build.py b/cognite_toolkit/_cdf_tk/commands/build.py index c72405836..3e82f654b 100644 --- a/cognite_toolkit/_cdf_tk/commands/build.py +++ b/cognite_toolkit/_cdf_tk/commands/build.py @@ -313,8 +313,8 @@ def _build_module_resources( built_resources = BuiltResourceList[Hashable]() for destination in builder.build(source_files, module): if not isinstance(destination, BuildDestinationFile): - # is warnings - self.warning_list.extend(destination) + for warning in destination: + self.warn(warning) continue if Flags.REQUIRE_KIND.is_enabled() and destination.loader is FileLoader: # This is a content file that we should not copy to the build directory.