Skip to content

Issues due to lack of check for when Attachment.content_type is None #3402

@wookie184

Description

@wookie184

Attachment.content_type can be None, but there are some places where we assume it is a string:

This has come up in production BOT-3ZJ, BOT-3ZH, and BOT-42E.

I assume the fix is as simple as ignoring None values, but I haven't looked into the code here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)l: 0 - beginnert: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions