DynamicMap raises KeyError when out of bounds
@@ -784,11 +784,11 @@ class DynamicMap(HoloMap):
low, high = util.max_range([kdim.range, kdim.soft_range])
if low is not np.NaN:
if val < low:
- raise StopIteration("Key value %s below lower bound %s"
+ raise KeyError("Key value %s below lower bound %s"
% (val, low))
if high is not np.NaN:
if val > high:
- raise StopIteration("Key value %s above upper bound %s"
+ raise KeyError("Key value %s above upper bound %s"
% (val, high))
def event(self, **kwargs):
