diff options
author | 2021-02-23 12:06:59 +0530 | |
---|---|---|
committer | 2021-02-23 12:06:59 +0530 | |
commit | fa9e205338429def46b1c962138eda52c44ba824 (patch) | |
tree | bd036fd24067274d7bc6e02b5d4aac9096a76325 | |
parent | Goodbye Wikipedia Class, no need of you anymore (diff) |
Add log.info() statement if the wikipedia api request status code is not 200
-rw-r--r-- | bot/exts/evergreen/wikipedia.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py index 0d100d90..0b64136f 100644 --- a/bot/exts/evergreen/wikipedia.py +++ b/bot/exts/evergreen/wikipedia.py @@ -70,6 +70,7 @@ class WikipediaSearch(commands.Cog): ) return None else: + log.info(f"Unexpected response `{resp.status}` while searching wikipedia for `{search}`") await ctx.send( WikipediaSearchErrors.api_issue.value ) |