author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 20 Apr 2019 21:06:43 +0300 | |
changeset 1149 | ca622f07a40b |
parent 1148 | 263e9e066981 |
child 1150 | a1e8d32d2e8d |
--- a/py/gaphrase_srs_anki.py Sat Apr 20 21:06:13 2019 +0300 +++ b/py/gaphrase_srs_anki.py Sat Apr 20 21:06:43 2019 +0300 @@ -135,6 +135,8 @@ phrase_buf.append(self.line) if len(phrases) == 0: raise ParseException("""There are no any phrases...""") + if num in self.dom: + raise ParseException("""Conflicting key: {}...""".format(num)) self.dom[num] = phrases FIN = io.open(FINAME, mode='r', buffering=1, encoding="utf-8")