Commented issue #11

This commit is contained in:
Manuel Cortez 2018-09-03 09:18:32 -05:00
parent e77276ae52
commit 314a615b68

View File

@ -219,6 +219,8 @@ class vkSession(object):
If the access_token has expired, it will call authorise() too, for getting a new access token.""" If the access_token has expired, it will call authorise() too, for getting a new access token."""
if self.settings["vk"]["token"] != None: if self.settings["vk"]["token"] != None:
# Handle special case where you get identical access tokens for two IP addresses.
# See https://github.com/manuelcortez/socializer/issues/11
try: try:
result = self.vk.login_access_token(self.settings["vk"]["token"]) result = self.vk.login_access_token(self.settings["vk"]["token"])
self.logged = True self.logged = True