Skip to content

Handle channel category being None in antispam/malware checks#1851

Merged
wookie184 merged 1 commit into
mainfrom
fix-hasattr-check
Oct 3, 2021
Merged

Handle channel category being None in antispam/malware checks#1851
wookie184 merged 1 commit into
mainfrom
fix-hasattr-check

Conversation

@wookie184
Copy link
Copy Markdown
Contributor

The code already handled the attribute not existing (e.g from a DM channel), but didn't handle TextChannels not in a category.

This doesn't currently affect the server as all our channels are in categories

The code already handled the attribute not existing (e.g from a DM channel), but didn't handle TextChannels not in a category
@wookie184 wookie184 requested review from jb3 and mbaruh as code owners October 3, 2021 13:58
@wookie184 wookie184 added a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) p: 3 - low Low Priority t: bug Something isn't working labels Oct 3, 2021
@wookie184 wookie184 enabled auto-merge October 3, 2021 14:00
@wookie184 wookie184 merged commit 7f3edcd into main Oct 3, 2021
@wookie184 wookie184 deleted the fix-hasattr-check branch October 3, 2021 21:10
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: 3 - low Low Priority t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants