diff options
Diffstat (limited to 'bot/exts/info/source.py')
-rw-r--r-- | bot/exts/info/source.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/source.py b/bot/exts/info/source.py index a0b2d5535..1c3387e53 100644 --- a/bot/exts/info/source.py +++ b/bot/exts/info/source.py @@ -23,7 +23,7 @@ class BotSource(commands.Cog): self, ctx: commands.Context, *, - source_item: SourceConverter = None, # noqa: RUF013 + source_item: SourceConverter = None, ) -> None: """Display information and a GitHub link to the source code of a command, tag, or cog.""" if not source_item: @@ -69,7 +69,7 @@ class BotSource(commands.Cog): # Handle tag file location differently than others to avoid errors in some cases if not first_line_no: - file_location = Path(filename).relative_to("bot/") + file_location = Path(filename) else: file_location = Path(filename).relative_to(Path.cwd()).as_posix() |