We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b06fa commit f64d3bcCopy full SHA for f64d3bc
main.py
@@ -51,9 +51,12 @@ def automate_function(
51
if b.speckle_type == function_inputs.forbidden_speckle_type:
52
if not b.id:
53
raise ValueError("Cannot operate on objects without their id's.")
54
- automate_context.add_object_error(
55
- b.id,
56
- "This project should not contain the type: " f"{b.speckle_type}",
+
+ automate_context.attach_error_to_objects(
+ category="Forbidden speckle_type",
57
+ object_ids=b.id,
58
+ message="This project should not contain the type: "
59
+ f"{b.speckle_type}",
60
)
61
count += 1
62
0 commit comments