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

@ -15,8 +15,8 @@ __title__ = 'discord'
__author__ = 'Rapptz'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015 Rapptz'
__version__ = '0.6.0'
__build__ = 0x006000
__version__ = '0.6.1'
__build__ = 0x006010
from .client import Client
from .user import User

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."""