Skip to content

Commit 5a25124

Browse files
committed
Replace __module__ with inspect.getmodule
1 parent a3d35ac commit 5a25124

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pydis_core/exts/source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def _get_source_object(ctx: "commands.Context[Bot]", argument: str) -> tup
8585

8686
cog = ctx.bot.get_cog(argument)
8787
if cog:
88-
if cog.__module__.startswith("pydis_core.exts"):
88+
if inspect.getmodule(cog).__name__.startswith("pydis_core.exts"):
8989
return cog, _SourceType.core_cog
9090
return cog, _SourceType.cog
9191

0 commit comments

Comments
 (0)