Skip to content
Snippets Groups Projects
Commit d6cdb4ae authored by Pavel Spirek's avatar Pavel Spirek Committed by Ladislav Lhotka
Browse files

Fixed 'unhashable type: list' error after Instance.remove_entry() was used

parent 5d0d3ae4
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ class Instance:
if not isinstance(val, ArrayValue):
raise InstanceTypeError(self, "entry of non-array")
try:
return Instance(val[:index] + val[index+1:], self.crumb)
return Instance(ArrayValue(val=(val[:index] + val[index+1:])), self.crumb)
except IndexError:
raise NonexistentInstance(self, "entry " + str(index)) from None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment