From 72d35232a1dead480a692655f280afe57aa39e37 Mon Sep 17 00:00:00 2001 From: Jay Turner Date: Sun, 3 Feb 2019 18:03:27 +0000 Subject: [PATCH] Fix key errors KeyError: 'verboseescalation' comes up if the key isn't defined. --- helpdesk/management/commands/escalate_tickets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpdesk/management/commands/escalate_tickets.py b/helpdesk/management/commands/escalate_tickets.py index 4c8cafe4..f7468182 100644 --- a/helpdesk/management/commands/escalate_tickets.py +++ b/helpdesk/management/commands/escalate_tickets.py @@ -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: