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

IndexError responding to !topic in a channel with no topic set #178

Closed
alanbriolat opened this issue Apr 18, 2021 · 1 comment
Closed

IndexError responding to !topic in a channel with no topic set #178

alanbriolat opened this issue Apr 18, 2021 · 1 comment

Comments

@alanbriolat
Copy link
Member

As the title says, the !topic command in a channel with no topic causes the following exception:

Traceback (most recent call last):
  File "/app/src/csbot/events.py", line 255, in _finish_async_handler
    await future
  File "/app/src/csbot/core.py", line 172, in fire_command
    await maybe_future_result(f(event), log=self.log)
  File "/app/src/csbot/plugin.py", line 56, in __call__
    return getattr(self.obj, self.name)(*args, **kwargs)
  File "/app/src/csbot/plugins/topic.py", line 89, in topic
    topic = self._get_topic(e['channel'])
  File "/app/src/csbot/plugins/topic.py", line 71, in _get_topic
    return self.topics[channel][-1]
IndexError: deque index out of range
@alanbriolat
Copy link
Member Author

Duplicate of #157.

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

1 participant