Skip to content

Instantly share code, notes, and snippets.

@8vius
Created February 9, 2013 22:47
Show Gist options
  • Save 8vius/4747449 to your computer and use it in GitHub Desktop.
Save 8vius/4747449 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "parser_test.py", line 68, in main
plain=email['message-plain'], attachments=email['message-attachments'], debug=options.debug)
File "/Users/8vius/Projects/PythonDev/OneReceipt/Parser Kit v1.4/loft.py", line 8, in parser
soup = BeautifulSoup(html, convertEntities=BeautifulSoup.HTML_ENTITIES)
File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1522, in __init__
BeautifulStoneSoup.__init__(self, *args, **kwargs)
File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1147, in __init__
self._feed(isHTML=isHTML)
File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1171, in _feed
smartQuotesTo=self.smartQuotesTo, isHTML=isHTML)
File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1773, in __init__
self._detectEncoding(markup, isHTML)
File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1918, in _detectEncoding
'^<\?.*encoding=[\'"](.*?)[\'"].*\?>').match(xml_data)
TypeError: expected string or buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment