Skip to content

Commit 2ac00ba

Browse files
authored
refactor: change log level of missing value to warning (#1339)
Lets not scare people with "error"s ay?
1 parent 01a6e9e commit 2ac00ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interactions/models/discord/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def __iter__(self) -> Iterator:
118118

119119

120120
def _log_type_mismatch(cls, value) -> None:
121-
get_logger().error(
122-
f"Class `{cls.__name__}` received an invalid and unexpected value `{value}`. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issues"
121+
get_logger().warning(
122+
f"Class `{cls.__name__}` received an invalid and unexpected value `{value}`, a new enum item will be created to represent this value. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issues"
123123
)
124124

125125

0 commit comments

Comments
 (0)