Raise the correct exception

This commit is contained in:
Roberto Rosario
2014-11-02 20:16:09 -04:00
parent 5d1599de04
commit 654022807f
2 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
class BackendBase(object):
def execute(input_filename, language=None):
raise NotImplemented
def execute(input_filename, language=None): # NOQA
raise NotImplementedError

View File

@@ -51,7 +51,7 @@ class Statistic(object):
return unicode(self.label)
def get_results(self, *args, **kwargs):
return NotImplemented
return NotImplementedError
@property
def id(self):