Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit db36e5f

Browse files
committed
Correct support for test command in Django 1.8+
1 parent 5615a8a commit db36e5f

File tree

1 file changed

+4
-1
lines changed
  • raven/contrib/django/management/commands

1 file changed

+4
-1
lines changed

raven/contrib/django/management/commands/raven.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ class Command(BaseCommand):
3838
)
3939
else:
4040
def add_arguments(self, parser):
41+
parser.add_argument(
42+
'command', nargs=1,
43+
)
4144
parser.add_argument(
4245
'--data', action=StoreJsonAction,
4346
nargs=1, dest='data',
@@ -48,7 +51,7 @@ def add_arguments(self, parser):
4851
)
4952

5053
def handle(self, command=None, *args, **options):
51-
if command != 'test':
54+
if command not in ('test', ['test']):
5255
print('Usage: manage.py raven test')
5356
sys.exit(1)
5457

0 commit comments

Comments
 (0)