Skip to content

Commit

Permalink
Fix key errors
Browse files Browse the repository at this point in the history
KeyError: 'verboseescalation' comes up if the key isn't defined.
  • Loading branch information
TurnrDev authored Feb 3, 2019
1 parent d3c4d14 commit 72d3523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpdesk/management/commands/escalate_tickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def handle(self, *args, **options):
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:
Expand Down

0 comments on commit 72d3523

Please sign in to comment.