diff options
author | 2023-05-17 12:23:29 +0530 | |
---|---|---|
committer | 2023-05-17 12:23:29 +0530 | |
commit | 7876744fedab9fbb22a160c8950ee22262570270 (patch) | |
tree | f7189b5f3e9c0947d71f86461f151e50092f6e2c /bot/exts/utilities/stackoverflow.py | |
parent | nit (diff) | |
parent | Bump sentry-sdk from 1.22.2 to 1.23.0 (#1277) (diff) |
Merge branch 'main' into undeprecate-bookmark
Diffstat (limited to 'bot/exts/utilities/stackoverflow.py')
-rw-r--r-- | bot/exts/utilities/stackoverflow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/utilities/stackoverflow.py b/bot/exts/utilities/stackoverflow.py index b248e83f..1eeff45b 100644 --- a/bot/exts/utilities/stackoverflow.py +++ b/bot/exts/utilities/stackoverflow.py @@ -42,10 +42,10 @@ class Stackoverflow(commands.Cog): if response.status == 200: data = await response.json() else: - logger.error(f'Status code is not 200, it is {response.status}') + logger.error(f"Status code is not 200, it is {response.status}") await ctx.send(embed=ERR_EMBED) return - if not data['items']: + if not data["items"]: no_search_result = Embed( title=f"No search results found for {search_query}", color=Colours.soft_red @@ -63,7 +63,7 @@ class Stackoverflow(commands.Cog): ) for item in top5: embed.add_field( - name=unescape(item['title']), + name=unescape(item["title"]), value=( f"[{Emojis.reddit_upvote} {item['score']} " f"{Emojis.stackoverflow_views} {item['view_count']} " |