mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Client.email is now set when using the cache
This commit is contained in:
parent
49488c9151
commit
5d2f107070
@ -146,6 +146,7 @@ class Client:
|
||||
try:
|
||||
log.info('attempting to login via cache')
|
||||
cache_file = self._get_cache_filename(email)
|
||||
self.email = email
|
||||
with open(cache_file, 'r') as f:
|
||||
log.info('login cache file found')
|
||||
self.token = f.read()
|
||||
|
Loading…
x
Reference in New Issue
Block a user