Skip to content

Commit

Permalink
Merge pull request #69 from vrk-kpa/LIKA-589_remove-organization-harv…
Browse files Browse the repository at this point in the history
…est-error-limit

LIKA-589: Remove error limit from update_xroad_organizations
  • Loading branch information
bzar authored Mar 11, 2024
2 parents a011c9b + bece4cb commit f3cb435
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ckanext/xroad_integration/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def update_xroad_organizations(context, data_dict):
organization_names = organization_list(context, {})
timestamp = datetime.datetime.now().strftime('%Y-%m-%dT%H:%M:%S')

harvest_source_error_limit = 10

errors_by_source = {}

updated = 0
Expand Down Expand Up @@ -85,9 +83,6 @@ def update_xroad_organizations(context, data_dict):
except ContentFetchError as cfe:
errors.append(', '.join(repr(a) for a in cfe.args))

if len(errors) > harvest_source_error_limit:
break

if errors:
errors_by_source[source_title] = list(set(errors))

Expand Down

0 comments on commit f3cb435

Please sign in to comment.