Skip to content

Commit

Permalink
updated to py3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ramusus committed Mar 4, 2016
1 parent e8c32ae commit 84b26f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vkontakte_users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def update_counters(self):
"""
try:
response = api_call('users.get', ids=self.remote_id, fields='counters')
except VkontakteError, e:
except VkontakteError as e:
log.warning("There is vkontakte error [code=%d] while updating user [id=%d] counters: %s" % (
e.code, self.remote_id, e.description))
return False
Expand Down Expand Up @@ -543,7 +543,7 @@ def fetch_friends(self, **kwargs):
try:
log.debug("Fetch friends for user %s" % self)
users = User.remote.fetch_friends(user=self, **kwargs)
except VkontakteError, e:
except VkontakteError as e:
if e.code == 15:
# update current user, make him deactivated
User.remote.fetch(id=self.remote_id)
Expand Down

0 comments on commit 84b26f8

Please sign in to comment.