Commit e003aa80 authored by Michael Wagner's avatar Michael Wagner
Browse files

added todo - once the timeouts start happening, what to do?

parent 05d68e1c
......@@ -52,6 +52,7 @@ def error_handling(status_code, current_slow_down):
print(status_code, error_dict[status_code])
elif status_code == 429:
# wait a minute, try to find a better timer
# ToDo: try current orcid again
print("Sleeping a minute, setting slow_down timer to", current_slow_down + 0.5, 'from', current_slow_down)
print("limits: 60 requests per minute, 2000 requests per hour")
time.sleep(60)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment