diff options
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/wikipedia.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py index c565a404..ebc8305f 100644 --- a/bot/exts/evergreen/wikipedia.py +++ b/bot/exts/evergreen/wikipedia.py @@ -26,7 +26,7 @@ class WikipediaCog(commands.Cog):          """Making formatted wikipedia link.."""          return  f'`{index}` [{title}]({WIKIPEDIA_URL.format(title=title.replace(" ", "_"))})' -    async def search_wikipedia(self, search_term: str) -> List[str]: +    async def search_wikipedia(self, search_term: str) -> Optional[List[str]]:          """Search wikipedia and return the first page found."""          async with self.http_session.get(SEARCH_API.format(search_term=search_term)) as response:              data = await response.json() @@ -101,7 +101,7 @@ class WikipediaCog(commands.Cog):                  await ctx.send(f"Sorry, please give an integer between `1` to `{titles_len}`, {error_msg}")              except Exception as e: -                log.info(e) +                log.info(f"Caught exception {e}, breaking out of retry loop")                  break | 
