Skip to content
Snippets Groups Projects
Commit 0b95cb51 authored by Paul Millar's avatar Paul Millar
Browse files

update_oai-pmh fix output when retrying ListIdentifiers request

parent f2e9b990
No related branches found
No related tags found
1 merge request!64update_oai-pmh Add a back-off strategy, to allow a service to recover
......@@ -123,8 +123,8 @@ def list_identifiers(url)
# insert a new-line. As a quick hack, use the presence of
# resumptionToken in the URL to indicate a newline is needed (this
# works most of the time, but not always)
if url.include?('resumptionToken=')
print '\n'
if url.include?('resumptionToken=') && attempts == 1
print "\n"
end
print " Attempt #{attempts} of #{MAX_HTTP_GET_RETRIES} failed: #{e.message}\n"
sleep(5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment