Commit 937fd876 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[algorithm] Improve uses setter

If not passing a dictionary then raise an error.
parent 8b7e6d8a
......@@ -753,6 +753,8 @@ class Algorithm(object):
def uses(self, value):
if not isinstance(value, dict):
raise RuntimeError("Invalid uses entry, must be a dict")["uses"] = value
return value
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment