Update autogpt_platform/backend/backend/blocks/basic.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Toran Bruce Richards
2025-06-27 21:31:11 +01:00
committed by GitHub
parent a235e49dda
commit d12fdbda79

View File

@@ -635,7 +635,7 @@ class RemoveFromListBlock(Block):
lst.remove(input_data.value)
removed = input_data.value
else:
raise ValueError
raise ValueError("No index or value provided for removal")
except (IndexError, ValueError):
yield "error", "Index or value not found"
return