diff options
author | 2023-02-28 13:47:24 +0200 | |
---|---|---|
committer | 2023-02-28 13:47:24 +0200 | |
commit | 4d51cad0831f2a358d4674035bebfda2884d33ed (patch) | |
tree | 50c9f21c67e2b556d9e50f1b0b2ec560fa0ee681 | |
parent | Fix Infraction check (diff) |
Deprecated `warn` -> `warning`
Co-authored-by: wookie184 <[email protected]>
-rw-r--r-- | bot/exts/filtering/_filter_lists/antispam.py | 2 | ||||
-rw-r--r-- | bot/exts/filtering/_filter_lists/filter_list.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/filtering/_filter_lists/antispam.py b/bot/exts/filtering/_filter_lists/antispam.py index e549404c4..147998c1c 100644 --- a/bot/exts/filtering/_filter_lists/antispam.py +++ b/bot/exts/filtering/_filter_lists/antispam.py @@ -49,7 +49,7 @@ class AntispamList(UniquesListBase): return antispam_filter_types[content] except KeyError: if content not in self._already_warned: - log.warn(f"An antispam filter named {content} was supplied, but no matching implementation found.") + log.warning(f"An antispam filter named {content} was supplied, but no matching implementation found.") self._already_warned.add(content) return None diff --git a/bot/exts/filtering/_filter_lists/filter_list.py b/bot/exts/filtering/_filter_lists/filter_list.py index 4913315eb..bf02071cf 100644 --- a/bot/exts/filtering/_filter_lists/filter_list.py +++ b/bot/exts/filtering/_filter_lists/filter_list.py @@ -220,7 +220,7 @@ class FilterList(dict[ListType, AtomicList], typing.Generic[T], FieldRequiring): if filter_type: return filter_type(filter_data, defaults) elif content not in self._already_warned: - log.warn(f"A filter named {content} was supplied, but no matching implementation found.") + log.warning(f"A filter named {content} was supplied, but no matching implementation found.") self._already_warned.add(content) return None except TypeError as e: |