Cog-Creators / Cog-Creators/Red-DiscordBot

Ignored alias error from smart quotes

Open
#3,055 1 comment 0 reactions 0 assignees View on GitHub
Category: Cogs - Alias Status: Needs Discussion Type: Bug
Dominant language
Python
Stars
5.7k
Forks
2.5k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

# Command bugs

#### Command name

Any aliased command

#### What cog is this command from?

Alias

#### What were you expecting to happen?

The alias to function.

#### What actually happened?

Ignored exception in console and no response from the bot.

#### How can we reproduce this issue?

`[p]alias add aaa userinfo`
`[p]aaa “`

#### Other Info

This bug was found by SyntheticBee

Error:
```py
Ignoring exception in on_message
Traceback (most recent call last):
File "\venv\lib\site-packages\discord\client.py", line 270, in _run_event
await coro(*args, **kwargs)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 446, in on_message
await self.maybe_call_alias(message, aliases=aliases)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 210, in maybe_call_alias
await self.call_alias(message, prefix, alias)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 215, in call_alias
args = self.get_extra_args_from_alias(message, prefix, alias)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 185, in get_extra_args_from_alias
word = view.get_quoted_word()
File "\venv\lib\site-packages\discord\ext\commands\view.py", line 148, in get_quoted_word
raise ExpectedClosingQuoteError(close_quote)
discord.ext.commands.errors.ExpectedClosingQuoteError: Expected closing ”.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.