Skip to content

Commit a4a52c9

Browse files
committed
[dictparser] Use InvalidVersion exception
1 parent 6625c16 commit a4a52c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

odml/tools/dict_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from .. import format as odmlfmt
77
from ..info import FORMAT_VERSION
8-
from .parser_utils import ParserException
8+
from .parser_utils import InvalidVersionException, ParserException
99

1010

1111
class DictWriter:
@@ -131,7 +131,7 @@ def to_odml(self, parsed_doc):
131131
msg = ("Cannot read file: invalid odML document format version '%s'. \n"
132132
"This package supports odML format versions: '%s'."
133133
% (self.parsed_doc.get('odml-version'), FORMAT_VERSION))
134-
raise ParserException(msg)
134+
raise InvalidVersionException(msg)
135135

136136
self.parsed_doc = self.parsed_doc['Document']
137137

0 commit comments

Comments
 (0)