Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError when a user joins a channel #5

Open
scientrollogy opened this issue Aug 10, 2020 · 1 comment
Open

KeyError when a user joins a channel #5

scientrollogy opened this issue Aug 10, 2020 · 1 comment

Comments

@scientrollogy
Copy link

scientrollogy commented Aug 10, 2020

Traceback indicates that, at times, a user joining a channel while capitalizing the channel name in their /join command will result in the client shutting down due to an unhandled exception.

Traceback (most recent call last):
  File "d:\shared\python\bot\lib\site-packages\fredirc\client.py", line 500, in data_received
    self._processor.process(message)
  File "d:\shared\python\bot\lib\site-packages\fredirc\processor.py", line 67, in process
    self._process_join(prefix, params)
  File "d:\shared\python\bot\lib\site-packages\fredirc\processor.py", line 162, in _process_join
    self._state.channels[channel]._add_nicks(nick)
KeyError: '#Channelname'

I'm very new to programming and python, so I'm not sure why this is happening. Will changing channel = params[0] to channel = params[0].lower() fix this reliably, or is there something else I should be looking at? If it helps, the FredIRC client's /joins are all lowercase #channels.

@worblehat
Copy link
Owner

Hi @scientrollogy
sorry for the late response. I did not noticed that you created an issue up until now. Thank you for taking the time to report this bug.

Due to lack of time and motivation I decided to no longer maintain FredIRC so I will mark this repository as "archived" soon. I guess this issue is no longer relevant to you anyway? If it is, please let me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants