Control: severity -1 serious

Hi,

"more complex HTML templates" in my case means that I actually enter an
answer and then get a comparison for correctness (the "{{type:answer}}"
tag). Anki won't update to show the comparison, rate correctness and go
on with the next card, but display the following trace:

Caught exception:
  File "/usr/share/anki/aqt/webview.py", line 340, in handler
    cb(val)
  File "/usr/share/anki/aqt/reviewer.py", line 461, in _onTypedAnswer
    self._showAnswer()
  File "/usr/share/anki/aqt/reviewer.py", line 217, in _showAnswer
    a = self._mungeQA(a)
  File "/usr/share/anki/aqt/reviewer.py", line 156, in _mungeQA
    return self.typeAnsFilter(mungeQA(self.mw.col, buf))
  File "/usr/share/anki/aqt/reviewer.py", line 306, in typeAnsFilter
    return self.typeAnsAnswerFilter(buf)
  File "/usr/share/anki/aqt/reviewer.py", line 362, in typeAnsAnswerFilter
    cor = parser.unescape(cor)
<class 'AttributeError'>: 'HTMLParser' object has no attribute 'unescape'


This makes Anki pretty much unusable. However, I can confirm that the
patch works and seems to be all that's needed to fix this issue.

If a new upstream version seems unfeasible, can we at least have a -3
with this patch applied in time for the freeze?

Florian

Reply via email to