Ошибка при попытки использовать пустой тэг <text> в формате regex #51

Closed
opened 3 years ago by icerider · 1 comments
Collaborator
<reg>something</reg>
<text></text>
File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 68, in join_template
    self._document_text = template._join(self._document_text)
  File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 82, in _join
    if not self._patch_document(input_text):
  File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 122, in _patch_document
    raise FormatError("Error: Incorrect text of the "
AttributeError: 'FormatError' object has no attribute 'format'
``` <reg>something</reg> <text></text> ``` ``` File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 68, in join_template self._document_text = template._join(self._document_text) File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 82, in _join if not self._patch_document(input_text): File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 122, in _patch_document raise FormatError("Error: Incorrect text of the " AttributeError: 'FormatError' object has no attribute 'format' ```
Poster
Collaborator

Добавлен тест для воспроизведения test_format_regex_empty_text_tag

Добавлен тест для воспроизведения `test_format_regex_empty_text_tag`
icerider added the high label 3 years ago
derzeitgeist closed this issue 3 years ago
derzeitgeist referenced this issue from a commit 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: calculate/calculate-utils-4-lib#51
Loading…
There is no content yet.