NotImplemented is not an exception

`NotImplemented` is a singleton object, not an exception. You should be raising `NotImplementedError` here instead.
This commit is contained in:
Alexander Dutton 2015-01-19 14:23:13 +00:00
parent 0dffc46cb7
commit af05820b1b

View File

@ -46,7 +46,7 @@ class BaseRenderer(object):
render_style = 'text'
def render(self, data, accepted_media_type=None, renderer_context=None):
raise NotImplemented('Renderer class requires .render() to be implemented')
raise NotImplementedError('Renderer class requires .render() to be implemented')
class JSONRenderer(BaseRenderer):