Skip to content

TypeError: object of type 'NoneType' has no len() #1870

@sentry

Description

@sentry

Sentry Issue: BOT-1NS

TypeError: object of type 'NoneType' has no len()
(2 additional frame(s) were not displayed)
...
  File "bot/exts/moderation/infraction/_scheduler.py", line 85, in reapply_infraction
    expiry = dateutil.parser.isoparse(infraction["expires_at"]).replace(tzinfo=None)
  File "dateutil/parser/isoparser.py", line 37, in func
    return f(self, str_in, *args, **kwargs)
  File "dateutil/parser/isoparser.py", line 134, in isoparse
    components, pos = self._parse_isodate(dt_str)
  File "dateutil/parser/isoparser.py", line 208, in _parse_isodate
    return self._parse_isodate_common(dt_str)
  File "dateutil/parser/isoparser.py", line 213, in _parse_isodate_common
    len_str = len(dt_str)

Unhandled exception in on_member_join.

This seems to be caused when a user with a permanent mute leaves and rejoins the server.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions