few fixes

This commit is contained in:
2022-09-21 13:10:30 +02:00
parent d83fb45ecc
commit 1219bfdc99
2 changed files with 49 additions and 3 deletions

View File

@ -94,7 +94,7 @@ def process_repositories(args, service):
for doc in data.docs_by_service_type(service["service_type"]):
logging.debug(f"Analyzing document {doc}")
if args.document_type and doc["type"] != args.document_type:
if args.document_type and doc.get("type") != args.document_type:
logging.info(
f"Skipping synchronizing {doc['title']} "
f"due to the doc-type filter.")