mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +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
@@ -325,7 +325,7 @@ class BaseCommand(object):
|
||||
this method.
|
||||
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError('subclasses of BaseCommand must provide a handle() method')
|
||||
|
||||
|
||||
class AppCommand(BaseCommand):
|
||||
@@ -361,7 +361,7 @@ class AppCommand(BaseCommand):
|
||||
the command line.
|
||||
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError('subclasses of AppCommand must provide a handle_app() method')
|
||||
|
||||
|
||||
class LabelCommand(BaseCommand):
|
||||
@@ -397,7 +397,7 @@ class LabelCommand(BaseCommand):
|
||||
string as given on the command line.
|
||||
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError('subclasses of LabelCommand must provide a handle_label() method')
|
||||
|
||||
|
||||
class NoArgsCommand(BaseCommand):
|
||||
@@ -423,4 +423,4 @@ class NoArgsCommand(BaseCommand):
|
||||
Perform this command's actions.
|
||||
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError('subclasses of NoArgsCommand must provide a handle_noargs() method')
|
||||
|
||||
Reference in New Issue
Block a user