Advertisement
viki_omega9

Untitled

May 16th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "Email.py", line 31, in <module>
  3. server.sendmail(fromaddr, to, str(msg))
  4. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/message.py", line 122, in __str__
  5. return self.as_string(unixfrom=True)
  6. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/message.py", line 137, in as_string
  7. g.flatten(self, unixfrom=unixfrom)
  8. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/generator.py", line 83, in flatten
  9. self._write(msg)
  10. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/generator.py", line 115, in _write
  11. self._write_headers(msg)
  12. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/generator.py", line 164, in _write_headers
  13. v, maxlinelen=self._maxheaderlen, header_name=h).encode()
  14. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 410, in encode
  15. value = self._encode_chunks(newchunks, maxlinelen)
  16. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 370, in _encode_chunks
  17. _max_append(chunks, s, maxlinelen, extra)
  18. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/quoprimime.py", line 97, in _max_append
  19. L.append(s.lstrip())
  20. AttributeError: 'list' object has no attribute 'lstrip'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement