Advertisement
mjt

email_account.receive

mjt
Mar 22nd, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 277, in receive
  3. communication = self.insert_communication(msg, args=args)
  4. File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 334, in insert_communication
  5. email = Email(raw)
  6. File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 370, in __init__
  7. self.parse()
  8. File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 391, in parse
  9. self.process_part(part)
  10. File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 443, in process_part
  11. self.text_content += self.get_payload(part)
  12. File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 487, in get_payload
  13. charset = self.get_charset(part)
  14. File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 482, in get_charset
  15. charset = chardet.detect(str(part))['encoding']
  16. File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/chardet/__init__.py", line 34, in detect
  17. '{0}'.format(type(byte_str)))
  18. TypeError: Expected object of type bytes or bytearray, got: <class 'str'>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement