Fix bug with logging in with email and password.

This commit is contained in:
Rapptz 2016-06-12 22:41:14 -04:00
parent 879584b81a
commit 64c1e7d199

View File

@ -298,7 +298,7 @@ class Client:
def _login_2(self, email, password, **kwargs):
# attempt to read the token from cache
if self.cache_auth:
token = self._get_cache_token()
token = self._get_cache_token(email, password)
try:
self.http.static_login(token, bot=False)
except: