Kav-K / GPTDiscord

A robust, all-in-one GPT interface for Discord. ChatGPT-style conversations, image generation, AI-moderation, custom indexes/knowledgebase, youtube summarizer, and more!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removing a thread from awaiting a response should be safer

cherryroots opened this issue · comments

When a thread's already been removed or not in it for some reason it should just silently pass.

Traceback (most recent call last):
File "/home/bots/discord_bots/GPT3Discord/models/index_model.py", line 699, in index_webpage
    raise ValueError(
ValueError: Invalid URL or could not connect to the provided URL.
The summary is None
Ignoring exception in on_message
Traceback (most recent call last):
  File "/home/bots/.local/lib/python3.9/site-packages/discord/client.py", line 378, in _run_event
    await coro(*args, **kwargs)
  File "/home/bots/discord_bots/GPT3Discord/cogs/index_service_cog.py", line 168, in on_message
    self.thread_awaiting_responses.remove(message.channel.id)
ValueError: list.remove(x): x not in list

I will see what I can do