Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Jan 24, 2025
1 parent 2a97bb2 commit e1893bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/geodatagov/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def get_harvest_source_config(harvester_id):


def count_collection_package(source_id, identifier):
if not source_id or not identifier:
return 0

context = {'model': model, 'session': model.Session}
package_search = get_action('package_search')
search_params = {
Expand Down

0 comments on commit e1893bd

Please sign in to comment.