diff --git a/ckanext/matomo/commands.py b/ckanext/matomo/commands.py index 49439b2..adc9a93 100644 --- a/ckanext/matomo/commands.py +++ b/ckanext/matomo/commands.py @@ -185,7 +185,11 @@ def fetch(dryrun, since, until, dataset): pkg = None if dataset: - pkg = package_show({'ignore_auth': True}, {'id': dataset}) + try: + pkg = package_show({'ignore_auth': True}, {'id': dataset}) + except toolkit.ObjectNotFound: + log.info("Given dataset: %s not found" % dataset) + pass # Resource datastore search sql events (API events) for date_str, date_statistics in datastore_search_sql_events.items():