mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
fix utils.get_peer not raising in some cases
This commit is contained in:
parent
d214c78bd0
commit
9362f03fd5
|
@ -711,7 +711,8 @@ def get_peer(peer):
|
|||
elif isinstance(peer, types.InputPeerChannel):
|
||||
return types.PeerChannel(peer.channel_id)
|
||||
except (AttributeError, TypeError):
|
||||
_raise_cast_fail(peer, 'Peer')
|
||||
pass
|
||||
_raise_cast_fail(peer, 'Peer')
|
||||
|
||||
|
||||
def get_peer_id(peer, add_mark=True):
|
||||
|
|
Loading…
Reference in New Issue
Block a user