StampyAI/stampy

Stampy doesn't know how many questions are in queue.

tayler6000 opened this issue · 0 comments

After migrating to the new Wiki, Stampy no longer knows how many questions are in queue. See the stack trace: https://discord.com/channels/677546901339504640/1017527224540344380/1029137950077886474

Traceback (most recent call last):
  File "/home/rob/miniconda3/envs/stampy/lib/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
  File "/home/rob/miniconda3/envs/stampy/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/home/rob/miniconda3/envs/stampy/lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/home/rob/miniconda3/envs/stampy/lib/python3.9/asyncio/base_events.py", line 601, in run_forever
    self._run_once()
  File "/home/rob/miniconda3/envs/stampy/lib/python3.9/asyncio/base_events.py", line 1905, in _run_once
    handle._run()
  File "/home/rob/miniconda3/envs/stampy/lib/python3.9/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/rob/miniconda3/envs/stampy/lib/python3.9/site-packages/discord/client.py", line 409, in _run_event
    await coro(*args, **kwargs)
  File "/home/rob/stampy/servicemodules/discord.py", line 103, in on_message
    response = module.process_message(message)
  File "/home/rob/stampy/modules/questions.py", line 75, in process_message
    text=self.question_count_response(self.utils.get_question_count()),
  File "/home/rob/stampy/utilities/utilities.py", line 423, in get_question_count
    return self.wiki.get_question_count()
  File "/home/rob/stampy/api/semanticwiki.py", line 396, in get_question_count
    return results["Meta:API Queries"]["printouts"]["UnaskedQuestions"][0]
KeyError: 'Meta:API Queries'