Skip to content

Commit f140270

Browse files
committed
[rdf_converter.py] Change RDF Format Error Message
List all keys in python 2 and 3.
1 parent 5469c03 commit f140270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odml/tools/rdf_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_rdf_str(self, rdf_format="turtle"):
206206
"""
207207
if rdf_format not in self._conversion_formats:
208208
raise ValueError("odml.RDFWriter.get_rdf_str: Format for output files is incorrect. "
209-
"Please choose from the list: {}".format(self._conversion_formats.keys()))
209+
"Please choose from the list: {}".format(list(self._conversion_formats)))
210210
return self.convert_to_rdf().serialize(format=rdf_format).decode("utf-8")
211211

212212
def write_file(self, filename, rdf_format="turtle"):

0 commit comments

Comments
 (0)