mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Fix username.lower() on instances with username field but None
This commit is contained in:
parent
5c17097d8d
commit
b6b47d175c
|
@ -330,7 +330,9 @@ class Session:
|
|||
p_hash = p.access_hash
|
||||
|
||||
if p_hash is not None:
|
||||
username = getattr(e, 'username', '').lower() or None
|
||||
username = getattr(e, 'username', None) or None
|
||||
if username is not None:
|
||||
username = username.lower()
|
||||
phone = getattr(e, 'phone', None)
|
||||
name = utils.get_display_name(e) or None
|
||||
rows.append((marked_id, p_hash, username, phone, name))
|
||||
|
|
Loading…
Reference in New Issue
Block a user