Raise NotImplementedError, not NotImplemented singleton
NotImplementedError is for exceptions, NotImplemented is an error singleton Change-Id: I2bc42783c5bb92a32d7c3b0f5efab32a2e2f8fb6
This commit is contained in:
@@ -28,7 +28,7 @@ class BaseHostFilter(object):
|
|||||||
"""Base class for host filters."""
|
"""Base class for host filters."""
|
||||||
|
|
||||||
def host_passes(self, host_state, filter_properties):
|
def host_passes(self, host_state, filter_properties):
|
||||||
raise NotImplemented()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def _full_name(self):
|
def _full_name(self):
|
||||||
"""module.classname of the filter."""
|
"""module.classname of the filter."""
|
||||||
|
|||||||
Reference in New Issue
Block a user