Fix key errors

KeyError: 'verboseescalation' comes up if the key isn't defined.
This commit is contained in:
Jay Turner 2019-02-03 18:03:27 +00:00 committed by GitHub
parent d3c4d14a40
commit 72d35232a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: