Skip to content
Snippets Groups Projects
Commit f77d7340 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: make string a format string

parent 9dafdd9f
No related branches found
No related tags found
1 merge request!217TST: Make NamedTemporaryFiles Windows-compatible
Pipeline #59122 passed
...@@ -531,8 +531,8 @@ one with the entities that need to be updated and the other with entities to be ...@@ -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( prop.value = Crawler._get_property_id_for_datatype(
rtname=prop.datatype, name=prop.value) rtname=prop.datatype, name=prop.value)
except (db.EmptyUniqueQueryError, db.QueryNotUniqueError): except (db.EmptyUniqueQueryError, db.QueryNotUniqueError):
logger.error("The Property {prop.name} with datatype={prop.datatype} has the " logger.error(f"The Property {prop.name} with datatype={prop.datatype} has the "
"value {prop.value} and there is no appropriate Entity with such " f"value {prop.value} and there is no appropriate Entity with such "
"a name.") "a name.")
raise raise
else: else:
...@@ -548,8 +548,8 @@ one with the entities that need to be updated and the other with entities to be ...@@ -548,8 +548,8 @@ one with the entities that need to be updated and the other with entities to be
name=el)) name=el))
except (db.EmptyUniqueQueryError, db.QueryNotUniqueError): except (db.EmptyUniqueQueryError, db.QueryNotUniqueError):
logger.error( logger.error(
"The Property {prop.name} with datatype={prop.datatype} has the " f"The Property {prop.name} with datatype={prop.datatype} has the "
"value {prop.value} and there is no appropriate Entity with such " f"value {prop.value} and there is no appropriate Entity with such "
"a name.") "a name.")
raise raise
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment