Fix an error with logging in the login method.

This commit is contained in:
Rapptz
2015-09-27 20:22:44 -04:00
parent a04a526566
commit 74db314d30
2 changed files with 3 additions and 3 deletions

View File

@ -548,7 +548,7 @@ class Client(object):
self._create_websocket(gateway.json().get('url'), reconnect=False)
self._is_logged_in = True
else:
log.error(request_logging_format.format(name='login', response=response))
log.error(request_logging_format.format(name='login', response=r))
def logout(self):
"""Logs out of Discord and closes all connections."""