Merge pull request #707 from JayTurnr/patch-1

AttributeError: 'Command' object has no attribute 'option_list'
This commit is contained in:
Garret Wassermann 2019-02-03 14:23:10 -05:00 committed by GitHub
commit 9bdd7c60f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ class Command(BaseCommand):
def __init__(self):
BaseCommand.__init__(self)
self.option_list += (
self.option_list = (
make_option(
'--queues',
help='Queues to include (default: all). Use queue slugs'),
@ -48,9 +48,9 @@ class Command(BaseCommand):
queue_slugs = None
queues = []
if options['verboseescalation']:
if 'verboseescalation' in options:
verbose = True
if options['queues']:
if 'queues' in options:
queue_slugs = options['queues']
if queue_slugs is not None: