diff options
author | 2023-08-27 19:51:22 +0700 | |
---|---|---|
committer | 2023-08-27 19:51:22 +0700 | |
commit | bda41cb204c3303a74ab199448d391120155286b (patch) | |
tree | b8b5bb0ff6cd21303928b74d81b986281a74784d /bot/exts/core | |
parent | Changed cooldown to 5s, removed description if abstract not found (diff) | |
parent | holidayreact: add alternate spellings to February (#1214) (diff) |
Merge branch 'python-discord:main' into main
Diffstat (limited to 'bot/exts/core')
-rw-r--r-- | bot/exts/core/extensions.py | 2 | ||||
-rw-r--r-- | bot/exts/core/internal_eval/_helpers.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/core/extensions.py b/bot/exts/core/extensions.py index 87ef2ed1..f96b0292 100644 --- a/bot/exts/core/extensions.py +++ b/bot/exts/core/extensions.py @@ -153,7 +153,7 @@ class Extensions(commands.Cog): embed = Embed(colour=Colour.og_blurple()) embed.set_author( name="Extensions List", - url=Client.github_bot_repo, + url=Client.github_repo, icon_url=str(self.bot.user.display_avatar.url) ) diff --git a/bot/exts/core/internal_eval/_helpers.py b/bot/exts/core/internal_eval/_helpers.py index 34ef7fef..30c4b11c 100644 --- a/bot/exts/core/internal_eval/_helpers.py +++ b/bot/exts/core/internal_eval/_helpers.py @@ -227,7 +227,7 @@ class CaptureLastExpression(ast.NodeTransformer): log.trace("Found a trailing last expression in the evaluation code") log.trace("Creating assignment statement with trailing expression as the right-hand side") - right_hand_side = list(ast.iter_child_nodes(node))[0] + right_hand_side = next(iter(ast.iter_child_nodes(node))) assignment = ast.Assign( targets=[ast.Name(id="_value_last_expression", ctx=ast.Store())], |