From f77d7340c761f4d3725c0d350ace27ae0c00ba35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Sat, 14 Dec 2024 14:09:02 +0100 Subject: [PATCH] FIX: make string a format string --- src/caoscrawler/crawl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index a939b2ff..e0d24397 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -531,8 +531,8 @@ one with the entities that need to be updated and the other with entities to be prop.value = Crawler._get_property_id_for_datatype( rtname=prop.datatype, name=prop.value) except (db.EmptyUniqueQueryError, db.QueryNotUniqueError): - logger.error("The Property {prop.name} with datatype={prop.datatype} has the " - "value {prop.value} and there is no appropriate Entity with such " + logger.error(f"The Property {prop.name} with datatype={prop.datatype} has the " + f"value {prop.value} and there is no appropriate Entity with such " "a name.") raise else: @@ -548,8 +548,8 @@ one with the entities that need to be updated and the other with entities to be name=el)) except (db.EmptyUniqueQueryError, db.QueryNotUniqueError): logger.error( - "The Property {prop.name} with datatype={prop.datatype} has the " - "value {prop.value} and there is no appropriate Entity with such " + f"The Property {prop.name} with datatype={prop.datatype} has the " + f"value {prop.value} and there is no appropriate Entity with such " "a name.") raise else: -- GitLab