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

AttributeError: 'NoneType' object has no attribute 'jump_url' #2555

Closed
shtlrs opened this issue Apr 22, 2023 · 1 comment · Fixed by #2556
Closed

AttributeError: 'NoneType' object has no attribute 'jump_url' #2555

shtlrs opened this issue Apr 22, 2023 · 1 comment · Fixed by #2556
Labels
a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) p: 2 - normal Normal Priority status: approved The issue has received a core developer's approval t: bug Something isn't working

Comments

@shtlrs
Copy link
Member

shtlrs commented Apr 22, 2023

Sentry Issue: BOT-3FS

The issue seems to be happening at this line

I haven't looked much into the exception, but it seems to be induced by a superstarify infraction

@shtlrs shtlrs added t: bug Something isn't working p: 2 - normal Normal Priority a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) status: approved The issue has received a core developer's approval labels Apr 22, 2023
@wookie184
Copy link
Contributor

Traceback:

AttributeError: 'NoneType' object has no attribute 'jump_url'
  File "bot/exts/filtering/_settings.py", line 199, in action
    await entry.action(ctx)
  File "bot/exts/filtering/_settings_types/actions/remove_context.py", line 53, in action
    await self._handle_nickname(ctx)
  File "bot/exts/filtering/_settings_types/actions/remove_context.py", line 109, in _handle_nickname
    await command(FakeContext(ctx.message, alerts_channel, command), ctx.author, None, reason=SUPERSTAR_REASON)
  File "discord/ext/commands/core.py", line 582, in __call__
    return await self.callback(self.cog, context, *args, **kwargs)  # type: ignore
  File "bot/decorators.py", line 271, in wrapper
  File "bot/exts/moderation/infraction/superstarify.py", line 147, in superstarify
    infraction = await _utils.post_infraction(ctx, member, "superstar", infraction_reason, duration, active=True)
  File "bot/exts/moderation/infraction/_utils.py", line 104, in post_infraction
    jump_url = ctx.message.jump_url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) p: 2 - normal Normal Priority status: approved The issue has received a core developer's approval t: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants