aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-28 23:56:16 -0500
committerRapptz <[email protected]>2015-12-28 23:56:16 -0500
commit5d2f1070700806bf6e29e556d7b7fc412a8204f5 (patch)
tree0cabdd092824e58ccc783f7efbf1d1096f2743d2
parentmake ip/port voice packet logic more clear (diff)
downloaddiscord.py-5d2f1070700806bf6e29e556d7b7fc412a8204f5.tar.xz
discord.py-5d2f1070700806bf6e29e556d7b7fc412a8204f5.zip
Client.email is now set when using the cache
-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()