mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
This commit is contained in:
committed by
Tim Graham
parent
d59f1993f1
commit
b2b763448f
@@ -28,7 +28,7 @@ class BaseFinder(object):
|
||||
the first found file path will be returned; if set
|
||||
to ``True`` a list of all found files paths is returned.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError('subclasses of BaseFinder must provide a find() method')
|
||||
|
||||
def list(self, ignore_patterns):
|
||||
"""
|
||||
@@ -36,7 +36,7 @@ class BaseFinder(object):
|
||||
a two item iterable consisting of the relative path and storage
|
||||
instance.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError('subclasses of BaseFinder must provide a list() method')
|
||||
|
||||
|
||||
class FileSystemFinder(BaseFinder):
|
||||
|
||||
Reference in New Issue
Block a user