Skip to content

Commit

Permalink
fix len(count)
Browse files Browse the repository at this point in the history
  • Loading branch information
samberger committed Mar 13, 2024
1 parent e329b02 commit 38cde77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def automate_function(
]
count = len(objects_with_forbidden_speckle_type)

print("automate_function(): found " + str(len(count)) + " elements of forbidden type: " + function_inputs.forbidden_speckle_type)
print("automate_function(): found " + str(count) + " elements of forbidden type: " + function_inputs.forbidden_speckle_type)

if count > 0:

print("automate_function(): count = " + str(len(count)) + " > 0")
print("automate_function(): count = " + str(count) + " > 0")

# this is how a run is marked with a failure cause
automate_context.attach_error_to_objects(
Expand All @@ -83,7 +83,7 @@ def automate_function(
automate_context.set_context_view()

else:
print("automate_function(): count = " + str(len(count)) + "")
print("automate_function(): count = " + str(count) + "")
automate_context.mark_run_success("No forbidden types found.")

# if the function generates file results, this is how it can be
Expand Down

0 comments on commit 38cde77

Please sign in to comment.