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

Fix recovery logic in update-oai-pmh

The recovery logic when faced with an error querying the identifiers is
currently broken, as it returns nil instead of a hash.
parent 765eb834
No related branches found
No related tags found
1 merge request!63Add retry logic to update-oai-pmh
......@@ -222,6 +222,8 @@ def query_oai_pmh_endpoint(endpoint)
total_count, set_counts = count_identifiers(endpoint, dc_prefix)
rescue StandardError => e
puts " Error: ListIdentifiers failed #{e.message}"
total_count = 0
set_counts = {}
end
return status, set_names, total_count, set_counts
......
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