aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index 8458ed62..10d000b1 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -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()