Skip to content

Commit

Permalink
handling 502 error
Browse files Browse the repository at this point in the history
  • Loading branch information
ramusus committed Aug 21, 2015
1 parent b19bf1e commit 091a6e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vkontakte_api/api.py
Expand Up @@ -82,6 +82,10 @@ def handle_error_code_501(self, e, *args, **kwargs):
# strange HTTP error appears sometimes
return self.sleep_repeat_call(*args, **kwargs)

def handle_error_code_502(self, e, *args, **kwargs):
# strange HTTP error appears sometimes
return self.sleep_repeat_call(*args, **kwargs)


def api_call(*args, **kwargs):
api = VkontakteApi()
Expand Down

0 comments on commit 091a6e3

Please sign in to comment.