#26922 closed Bug (fixed)
AttributeError in assert_and_parse_html on Python 3.5+
Description ¶
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>")
Change History (4)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 9 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In d7a09726: