Skip to content

Commit 32979d1

Browse files
authored
fix for sonarcloud-reported bug (#1945)
invalid "+" operation between incompatible types (str and type) - [sonarcloud-reported bug](https://sonarcloud.io/project/issues?issues=AYDHhHV9L8VDMGmTmRtc&open=AYDHhHV9L8VDMGmTmRtc&id=RDFLib_rdflib) Changed exception string construction to use `f""` format
1 parent eff3b31 commit 32979d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rdflib/plugins/serializers/trix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def serialize(
4747
elif isinstance(self.store, Graph):
4848
self._writeGraph(self.store)
4949
else:
50-
raise Exception("Unknown graph type: " + type(self.store))
50+
raise Exception(f"Unknown graph type: {type(self.store)}")
5151

5252
self.writer.pop()
5353
stream.write("\n".encode("latin-1"))

0 commit comments

Comments
 (0)