Client.email is now set when using the cache

This commit is contained in:
Rapptz 2015-12-28 23:56:16 -05:00
parent 49488c9151
commit 5d2f107070

View File

@ -146,6 +146,7 @@ class Client:
try: try:
log.info('attempting to login via cache') log.info('attempting to login via cache')
cache_file = self._get_cache_filename(email) cache_file = self._get_cache_filename(email)
self.email = email
with open(cache_file, 'r') as f: with open(cache_file, 'r') as f:
log.info('login cache file found') log.info('login cache file found')
self.token = f.read() self.token = f.read()