Traceback when [p]help+a command that doesn't exist #1746

Closed
opened 2018-05-30 05:21:15 +02:00 by Gtoyos · 3 comments
Gtoyos commented 2018-05-30 05:21:15 +02:00 (Migrated from github.com)

Command bugs

Command name

$help

What cog is this command from?

Core?

What were you expecting to happen?

Nothing should happend. Or Red should send a message saying that command doesn't exist

What actually happened?

CommandInvokeError: Command raised an exception: AttributeError: 'coroutine' object has no attribute 'to_dict'
Error in command 'help'. Check your console or logs for details.

How can we reproduce this issue?

[p]help thisisnotacommand


Traceback:

Exception in command 'help'
Traceback (most recent call last):
  File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 62, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "/home/gtoyos/.local/lib/python3.6/site-packages/redbot/core/help_formatter.py", line 330, in help
    await destination.send(embed=await ctx.bot.formatter.cmd_not_found(ctx, name))
  File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/abc.py", line 742, in send
    embed = embed.to_dict()
AttributeError: 'coroutine' object has no attribute 'to_dict'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 886, in invoke
    yield from ctx.command.invoke(ctx)
  File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 514, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 71, in wrapped
    raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'coroutine' object has no attribute 'to_dict'
# Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name $help #### What cog is this command from? Core? #### What were you expecting to happen? Nothing should happend. Or Red should send a message saying that command doesn't exist #### What actually happened? CommandInvokeError: Command raised an exception: AttributeError: 'coroutine' object has no attribute 'to_dict' Error in command 'help'. Check your console or logs for details. #### How can we reproduce this issue? [p]help thisisnotacommand ---- ### Traceback: ``` Exception in command 'help' Traceback (most recent call last): File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 62, in wrapped ret = yield from coro(*args, **kwargs) File "/home/gtoyos/.local/lib/python3.6/site-packages/redbot/core/help_formatter.py", line 330, in help await destination.send(embed=await ctx.bot.formatter.cmd_not_found(ctx, name)) File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/abc.py", line 742, in send embed = embed.to_dict() AttributeError: 'coroutine' object has no attribute 'to_dict' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 886, in invoke yield from ctx.command.invoke(ctx) File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 514, in invoke yield from injected(*ctx.args, **ctx.kwargs) File "/home/gtoyos/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 71, in wrapped raise CommandInvokeError(e) from e discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'coroutine' object has no attribute 'to_dict' ```
Tobotimus commented 2018-05-30 05:36:21 +02:00 (Migrated from github.com)

Unfortunately I'm not able to reproduce this on the latest version. Could you please show the output of redbot --version?

Unfortunately I'm not able to reproduce this on the latest version. Could you please show the output of `redbot --version`?
Gtoyos commented 2018-05-30 05:50:25 +02:00 (Migrated from github.com)

Version 3.0.0b15

Version 3.0.0b15
Tobotimus commented 2018-05-30 06:24:44 +02:00 (Migrated from github.com)

Thanks for bringing this issue forward!

Whilst this issue is present in the releases 3.0.0b15.post1 and 3.0.0b15.post2, it has been fixed by #1707. Closing

Thanks for bringing this issue forward! Whilst this issue is present in the releases `3.0.0b15.post1` and `3.0.0b15.post2`, it has been fixed by #1707. Closing
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#1746
No description provided.