feat: migrate to new automate sdk version
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled

This commit is contained in:
Gergő Jedlicska
2023-10-12 10:57:26 +02:00
parent d7b06faf02
commit f64d3bc6e2
3 changed files with 255 additions and 237 deletions
+6 -3
View File
@@ -51,9 +51,12 @@ def automate_function(
if b.speckle_type == function_inputs.forbidden_speckle_type:
if not b.id:
raise ValueError("Cannot operate on objects without their id's.")
automate_context.add_object_error(
b.id,
"This project should not contain the type: " f"{b.speckle_type}",
automate_context.attach_error_to_objects(
category="Forbidden speckle_type",
object_ids=b.id,
message="This project should not contain the type: "
f"{b.speckle_type}",
)
count += 1