File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ def to_odml(self):
190
190
if 'odml-version' not in self .parsed_doc :
191
191
raise ParserException ("Invalid odML document: Could not find odml-version." )
192
192
elif self .parsed_doc .get ('odml-version' ) != FORMAT_VERSION :
193
- msg = ("Invalid odML document format version '%s'. "
194
- "Supported versions: '%s'."
193
+ msg = ("Cannot read file: invalid odML document format version '%s'. \n "
194
+ "This package supports odML format versions: '%s'."
195
195
% (self .parsed_doc .get ('odml-version' ), FORMAT_VERSION ))
196
196
raise ParserException (msg )
197
197
Original file line number Diff line number Diff line change @@ -164,8 +164,8 @@ def _handle_version(root):
164
164
raise ParserException ("Could not find format version attribute "
165
165
"in odML start tag.\n " )
166
166
elif root .attrib ['version' ] != FORMAT_VERSION :
167
- msg = ("Invalid odML document format version '%s'. "
168
- "Supported versions: '%s'."
167
+ msg = ("Cannot read file: invalid odML document format version '%s'. \n "
168
+ "This package supports odML format versions: '%s'."
169
169
% (root .attrib ['version' ], FORMAT_VERSION ))
170
170
raise ParserException (msg )
171
171
You can’t perform that action at this time.
0 commit comments