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

Crashed main.py by 'ignore' sent for non-existent user alerts #14

Open
Iron-Bound opened this issue Mar 5, 2017 · 1 comment
Open
Labels

Comments

@Iron-Bound
Copy link

Hi, Have been able to crash the bot via "ignore last 1h1m" when no alert assigned for myself (user).

Traceback (most recent call last):
  File "main.py", line 45, in <module>
    main()
  File "main.py", line 42, in main
    sb.run()
  File "/home/ec2-user/securitybot/securitybot/bot.py", line 180, in run
    self.handle_messages()
  File "/home/ec2-user/securitybot/securitybot/bot.py", line 199, in handle_messages
    self.handle_command(user, text)
  File "/home/ec2-user/securitybot/securitybot/bot.py", line 211, in handle_command
    if cmd['fn'](self, user, args):
  File "/home/ec2-user/securitybot/securitybot/commands.py", line 69, in ignore
    if which == 'last' and user.old_tasks:
AttributeError: 'User' object has no attribute 'old_tasks'
@lfaraone lfaraone added the bug label Mar 6, 2017
@ishanjain28
Copy link
Contributor

Please Check PR #20 for a fix of this issue.

lfaraone pushed a commit that referenced this issue Apr 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants