diff options
| author | 2023-08-10 06:04:31 +0000 | |
|---|---|---|
| committer | 2023-08-10 06:04:31 +0000 | |
| commit | f897f6c576d7dca764c9c0515b2c576e7fb0daea (patch) | |
| tree | 4609c804db7ad9e0c4f415fc0e8a8353f2dfc6e1 /bot/exts/core | |
| parent | Bump rapidfuzz from 3.1.2 to 3.2.0 (#1341) (diff) | |
Bump ruff from 0.0.272 to 0.0.280 (#1333)
Co-authored-by: wookie184 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Lovering <[email protected]>
Co-authored-by: ChrisJL <[email protected]>
Diffstat (limited to 'bot/exts/core')
| -rw-r--r-- | bot/exts/core/internal_eval/_helpers.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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())], | 
