Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error #305

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def on_app_command_completion(
interaction.id,
int(interaction.data["id"]), # noqa
command.qualified_name,
interaction.data["options"],
interaction.data.get("options", {}),
)
except Exception as e:
await self.on_error("on_app_command_completion", e)
Expand Down Expand Up @@ -211,6 +211,7 @@ async def on_app_command_error(self, interaction: "InteractionType", error: app_
f"in channel **{interaction.channel.name}**"
)
invoked_details_document = await paste.create(str(json.dumps(interaction.data, indent=2)))

await self.send_error(content, header, invoked_details_document)
log.error("Ignoring unhandled exception", exc_info=error)

Expand Down
51 changes: 29 additions & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async-lru = "^2.0.4"

[tool.poetry.group.dev.dependencies]
isort = "^5.12.0"
black = {extras = ["d"], version = "^23.7.0"}
black = {extras = ["d"], version = "^24.3.0"}
flake8 = "^6.0.0"
pre-commit = "^3.3.2"

Expand Down
Loading