Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit d884657

Browse files
committed
Remove unnecessary type ignore
Despite this except branch is no longer guarded, the exceptional case could still happen if an Object is passed or if a future channel type leads to breakage
1 parent ccc737e commit d884657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ def __init__(
14221422

14231423
try:
14241424
# if the channel doesn't have a guild attribute, we handle that
1425-
self.guild = channel.guild # type: ignore
1425+
self.guild = channel.guild
14261426
except AttributeError:
14271427
self.guild = state._get_guild(utils._get_as_snowflake(data, 'guild_id'))
14281428

0 commit comments

Comments
 (0)