diff --git a/src/caosadvancedtools/crawler.py b/src/caosadvancedtools/crawler.py index d25522fedd4d4719f27f8cdf7fcccaef8f237a23..05471e94a05689bf3a63c4925a9394e116bebe0b 100644 --- a/src/caosadvancedtools/crawler.py +++ b/src/caosadvancedtools/crawler.py @@ -583,10 +583,10 @@ carefully and if the changes are ok, click on the following link: if ent.id is None or ent.id < 0: logger.debug("Looking for: {}".format( ent.id if ent.id is not None else ent.name)) - existing = Crawler.find_existing(ent) + found = Crawler.find_existing(ent) - if existing is not None: - ent.id = existing.id + if found is not None: + ent.id = found.id else: logger.debug("Id is known of: {}".format(ent))