Error Removing Command Aliases via Chat #319

Open
smashedr opened this Issue Oct 9, 2016 · 0 comments

Projects

None yet

1 participant

@smashedr
smashedr commented Oct 9, 2016

Adding an alias produces an error, but the alias works.
Removing an alias produces an error, and does not remove the alias.

0|smashedb | [2016-10-09 15:32:58,000] [DEBUG  ] smashed926: !add alias 8ball 8balltest2
0|smashedb | [2016-10-09 15:32:58,000] [DEBUG  ] [UserSQL] Loading user model for smashed926
0|smashedb | [2016-10-09 15:32:58,004] [ERROR  ] Uncaught exception in FuncAction
0|smashedb | Traceback (most recent call last):
0|smashedb |   File "/srv/pajbot/pajbot/models/action.py", line 222, in run
0|smashedb |     return self.cb(bot, source, message, event, args)
0|smashedb |   File "/srv/pajbot/pajbot/dispatch.py", line 369, in add_alias
0|smashedb |     bot.commands.edit_command(command, command=new_aliases)
0|smashedb |   File "/srv/pajbot/pajbot/managers/command.py", line 274, in edit_command
0|smashedb |     command_to_edit.data.set(**options)
0|smashedb | AttributeError: 'NoneType' object has no attribute 'set'
0|smashedb | [2016-10-09 15:33:00,450] [INFO   ] Received a ping. Last ping received 45.5 seconds ago
0|smashedb | [2016-10-09 15:33:08,678] [DEBUG  ] smashed926: !8balltest2 test?
0|smashedb | [2016-10-09 15:33:08,679] [DEBUG  ] [UserSQL] Loading user model for smashed926
0|smashedb | [2016-10-09 15:33:08,681] [INFO   ] Sending message: SmAsHeD926, the 8-ball says... no KappaRoss
0|smashedb | [2016-10-09 15:33:19,442] [DEBUG  ] smashed926: !delete alias 8balltest2
0|smashedb | [2016-10-09 15:33:19,443] [DEBUG  ] [UserSQL] Loading user model for smashed926
0|smashedb | [2016-10-09 15:33:19,446] [INFO   ] ['8balltest2']
0|smashedb | [2016-10-09 15:33:19,446] [ERROR  ] Uncaught exception in FuncAction
0|smashedb | Traceback (most recent call last):
0|smashedb |   File "/srv/pajbot/pajbot/models/action.py", line 222, in run
0|smashedb |     return self.cb(bot, source, message, event, args)
0|smashedb |   File "/srv/pajbot/pajbot/dispatch.py", line 408, in remove_alias
0|smashedb |     bot.commands.edit_command(command, command=new_aliases)
0|smashedb |   File "/srv/pajbot/pajbot/managers/command.py", line 274, in edit_command
0|smashedb |     command_to_edit.data.set(**options)
0|smashedb | AttributeError: 'NoneType' object has no attribute 'set'

Other than this everything else seems to function 100% (emote overlay, pleblist, songrequests, commands, timers, modules) and these are the only errors in the error log. Let me know if I can provide any additional info or take any actions.
Thanks pajaPepe

Running latest: 2.8.2 DEV (master, 272f056b, commit 1493)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment