Commit d6e05358 authored by Steven Cordwell's avatar Steven Cordwell
Browse files

TypeError --> ValueError

parent ee6624a8
......@@ -874,7 +874,7 @@ class ValueIteration(MDP):
self.value = matrix(zeros((self.S, 1)))
else:
if (initial_value.size != self.S):
raise TypeError("The initial value must be length S")
raise ValueError("The initial value must be length S")
self.value = matrix(initial_value)
......
Markdown is supported
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