Except the right type for get_input_peer (closes #722)

This commit is contained in:
Lonami Exo 2018-03-24 12:09:33 +01:00
parent 43c6896481
commit 898e550335

View File

@ -78,7 +78,7 @@ class MemorySession(Session):
try:
p = utils.get_input_peer(e, allow_self=False)
marked_id = utils.get_peer_id(p)
except ValueError:
except TypeError:
return
if isinstance(p, (InputPeerUser, InputPeerChannel)):