JNRowe/hubugs — Issue #15: HTML Parser Error
Author: sorin-ionescu
Created: 2011-12-03 22:01:47+00:00
State: open

Try `hubugs -p altercation/solarized show 146`.

Traceback (most recent call last):
File "/Users/sorin/Library/Python/2.7/bin/hubugs", line 8, in
load_entry_point('hubugs==0.11.0', 'console_scripts', 'hubugs')()
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/hubugs-0.11.0-py2.7.egg/hubugs/__init__.py", line 340, in main
parser.dispatch(pre_call=utils.set_api)
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/argh/helpers.py", line 300, in dispatch
return dispatch(self, *args, **kwargs)
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/argh/helpers.py", line 200, in dispatch
for line in lines:
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/argh/helpers.py", line 277, in _execute_command
for line in result:
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/argh/helpers.py", line 265, in _call
for line in result:
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/hubugs-0.11.0-py2.7.egg/hubugs/__init__.py", line 162, in show
yield tmpl.render(bug=bug, comments=comments, full=True, patch=patch)
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/hubugs-0.11.0-py2.7.egg/hubugs/templates/default/view/issue.txt", line 14, in top-level template code
{%- block body %}
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/hubugs-0.11.0-py2.7.egg/hubugs/templates/default/view/issue.txt", line 16, in block "body"
{{ bug.body | markdown | html2text }}
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/hubugs-0.11.0-py2.7.egg/hubugs/template.py", line 129, in html2text
return html2.html2text(html).strip()
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/html2text-3.101-py2.7.egg/html2text.py", line 696, in html2text
return optwrap(html2text_file(html, None, baseurl))
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/html2text-3.101-py2.7.egg/html2text.py", line 693, in html2text_file
return h.close()
File "/Users/sorin/Library/Python/2.7/lib/python/site-packages/html2text-3.101-py2.7.egg/html2text.py", line 288, in close
HTMLParser.HTMLParser.close(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/HTMLParser.py", line 112, in close
self.goahead(1)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/HTMLParser.py", line 164, in goahead
self.error("EOF in middle of construct")
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/HTMLParser.py", line 115, in error
raise HTMLParseError(message, self.getpos())
HTMLParser.HTMLParseError: EOF in middle of construct, at line 1, column 4