diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index d95af7f0eedc96f1ac263b33c7bb620fce57c2e6..cf171e70341a17cc0536925bac2da1c122f8ab2f 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -574,7 +574,10 @@ class Crawler(object): del flat[i] # 2. Can it be identified via a path? elif record.path is not None: - existing = cached_get_entity_by(path=record.path) + try: + existing = cached_get_entity_by(path=record.path) + except EmptyUniqueQueryError: + existing = None if existing is None: to_be_inserted.append(record) self.add_to_remote_missing_cache(record, identifiable)