Skip to content

Commit a9ee81b

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

odml/tools/format_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def convert_dir(cls, input_dir, output_dir, parse_subdirs, res_format):
7474
"""
7575
if res_format not in cls._conversion_formats:
7676
raise ValueError("Format for output files is incorrect. "
77-
"Please choose from the list: {}".format(cls._conversion_formats.keys()))
77+
"Please choose from the list: {}".format(list(cls._conversion_formats)))
7878

7979
cls._check_input_output_directory(input_dir, output_dir)
8080
input_dir = os.path.join(input_dir, '')
@@ -121,7 +121,7 @@ def _convert_file(cls, input_path, output_path, res_format):
121121
RDFWriter(odml.load(input_path)).write_file(output_path, res_format)
122122
else:
123123
raise ValueError("Format for output files is incorrect. "
124-
"Please choose from the list: {}".format(cls._conversion_formats.keys()))
124+
"Please choose from the list: {}".format(list(cls._conversion_formats)))
125125

126126
@staticmethod
127127
def _create_sub_directory(dir_path):

0 commit comments

Comments
 (0)