Skip to content

Commit

Permalink
Fix #195 as suggested by @oripka
Browse files Browse the repository at this point in the history
  • Loading branch information
andrawaag committed Aug 23, 2022
1 parent f2c92d2 commit 56f836e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = "0.9.22"
VERSION = "0.9.23"

setup(
name='wikidataintegrator',
Expand Down
2 changes: 1 addition & 1 deletion wikidataintegrator/wdi_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def execute_sparql_query(query, prefix=None, endpoint=None, user_agent=None, as_
continue
if response.status_code == 429:
if "retry-after" in response.headers.keys():
retry_after = response.headers["retry-after"]
retry_after = int(response.headers["retry-after"])
print("service unavailable. sleeping for {} seconds".format(retry_after))
time.sleep(retry_after)
continue
Expand Down

0 comments on commit 56f836e

Please sign in to comment.