AttributeError in assert_and_parse_html on Python 3.5+
I got this on Django 1.9 with Python 3.5:
def assert_and_parse_html(self, html, user_msg, msg):
try:
dom = parse_html(html)
except HTMLParseError as e:
> standardMsg = '%s\n%s' % (msg, e.msg)
E AttributeError: 'HTMLParseError' object has no attribute 'msg'
As I see it happens when input HTML is not valid (I tried with "< div></ div>")
PR: https://github.com/django/django/pull/6943
Change History
(4)
Owner: |
changed from nobody to Dmitry Dygalo
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
In d7a09726: