Browse code

correctly raise NotImplementedError rather than NotImplemented

NotImplementedError is an actual exception type, NotImplemented is not.

Joseph Weston authored on 18/07/2018 17:08:13
Showing 1 changed files
... ...
@@ -387,8 +387,8 @@ class Learner2D(BaseLearner):
387 387
     def plot(self, n=None, tri_alpha=0):
388 388
         hv = ensure_holoviews()
389 389
         if self.vdim > 1:
390
-            raise NotImplemented('holoviews currently does not support',
391
-                                 '3D surface plots in bokeh.')
390
+            raise NotImplementedError('holoviews currently does not support',
391
+                                      '3D surface plots in bokeh.')
392 392
         x, y = self.bounds
393 393
         lbrt = x[0], y[0], x[1], y[1]
394 394