Page MenuHomePhabricator

UnboundLocalError in invite_user
Closed, ResolvedPublic3 Estimated Story Points

Description

22:04:28 <ZppixBot> [irc.py] Exception from #channel: UnboundLocalError: local variable 'nick' referenced before assignment (file "/data/project/zppixbot/.sopel/modules/channelmgnt.py", line 440, in invite_user) (:nick!user@host PRIVMSG #channel :.invite)

Related Objects

Event Timeline

RhinosF1 renamed this task from Fix no channelmgnt config error handling to UnboundLocalError in invite_user.Dec 31 2019, 10:09 PM

Looking at it, I see 2 distinct bugs

This is caused by the fact ‘if not nick’ should have returned an error to the user when nick doesn’t exist.

I can catch this

But I also see that if get_chanops is empty then it should stop there.

This is probably best being stuck into 2020 Q1’s work anyway so shoving it in that. I suppose that means I can start in about 2 hours.

RhinosF1 triaged this task as Medium priority.Dec 31 2019, 10:23 PM
RhinosF1 set the point value for this task to 2.4.
RhinosF1 changed the point value for this task from 2.4 to 1.
RhinosF1 moved this task from Radar to Done on the User-RhinosF1 board.
RhinosF1 changed the point value for this task from 1 to 3.Apr 15 2020, 9:19 AM
RhinosF1 set Final Story Points to 0.