Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

Commit

Permalink
Fix for #14
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanjain28 authored and lfaraone committed Apr 20, 2017
1 parent 63cc1f9 commit 8cc4846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securitybot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def ignore(bot, user, args):

# Find correct task in user object
task = None
if which == 'last' and user.old_tasks:
task = user.old_tasks[-1]
if which == 'last' and user.tasks:
task = user.tasks[-1]
elif which == 'current' and user.pending_task:
task = user.pending_task
if task is None:
Expand Down

0 comments on commit 8cc4846

Please # to comment.