fix: template string needs an f

This commit is contained in:
Gergő Jedlicska
2024-06-04 11:14:37 +02:00
parent 67cb33373b
commit bb66e62724
+1 -1
View File
@@ -59,7 +59,7 @@ def automate_function(
# this is how a run is marked with a failure cause
automate_context.attach_error_to_objects(
category="Forbidden speckle_type"
" ({function_inputs.forbidden_speckle_type})",
f" ({function_inputs.forbidden_speckle_type})",
object_ids=[o.id for o in objects_with_forbidden_speckle_type if o.id],
message="This project should not contain the type: "
f"{function_inputs.forbidden_speckle_type}",