Skip to content

Commit d7f4a6c

Browse files
committed
[tools/odmlparser] Change missing doc format Error
1 parent 586a305 commit d7f4a6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

odml/tools/odmlparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def from_file(self, file, doc_format=None):
133133

134134
elif self.parser == 'RDF':
135135
if not doc_format:
136-
raise KeyError("Format of the rdf file was not specified")
136+
raise ValueError("Format of the rdf file was not specified")
137137

138138
self.doc = RDFReader().from_file(file, doc_format)
139139
return self.doc

0 commit comments

Comments
 (0)