• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

frappe / frappe / 26770
56%

Build:
DEFAULT BRANCH: develop
Ran 09 Dec 2019 02:12PM UTC
Jobs 4
Files 2562
Run time 10min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
26770

push

travis-ci

netchampfaris
fix(email): try to encode email part to utf-8 (#8965)

fixes issues with class objects other than str

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 281, in receive
    communication = self.insert_communication(msg, args=args)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 338, in insert_communication
    email = Email(raw)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 372, in __init__
    self.parse()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 393, in parse
    self.process_part(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 445, in process_part
    self.text_content += self.get_payload(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 489, in get_payload
    charset = self.get_charset(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 484, in get_charset
    charset = chardet.detect(frappe.safe_encode(part))['encoding']
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/chardet/__init__.py", line 34, in detect
    '{0}'.format(type(byte_str)))
TypeError: Expected object of type bytes or bytearray, got: <class 'email.message.Message'>

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

64605 of 124428 relevant lines covered (51.92%)

1.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26770.1 (DB=mariadb TYPE=server) 09 Dec 2019 02:12PM UTC 0
51.5
Travis Job 26770.1
2 26770.2 (DB=postgres TYPE=server) 09 Dec 2019 02:13PM UTC 0
51.5
Travis Job 26770.2
3 26770.3 (DB=mariadb TYPE=ui) 09 Dec 2019 02:22PM UTC 0
Travis Job 26770.3
4 26770.4 (DB=mariadb TYPE=server) 09 Dec 2019 02:17PM UTC 0
51.48
Travis Job 26770.4
Source Files on build 26770
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #26770
  • d169f41a on github
  • Prev Build on develop (#26753)
  • Next Build on develop (#26774)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc