From 3177ba26421b730bdf475fc2e991eef9ab9ef067 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sun, 9 Jun 2019 10:05:11 -0700 Subject: Add support for Delta Also add an undocumented mailbox driver for a directory of files for ease of testing (this could probably become a maildir driver with a bit more work). Remove unecessary decode calls from the message traversal. --- email_assistant/plugins/eventbrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'email_assistant/plugins/eventbrite.py') diff --git a/email_assistant/plugins/eventbrite.py b/email_assistant/plugins/eventbrite.py index 9ef073a..afd869f 100644 --- a/email_assistant/plugins/eventbrite.py +++ b/email_assistant/plugins/eventbrite.py @@ -44,7 +44,7 @@ class Plugin(plugin.Plugin): events = [] for part in msg.walk(): if part.get_content_type() == 'text/html': - soup = BeautifulSoup(part.get_payload(decode=True).decode('utf8'), 'html.parser') + soup = BeautifulSoup(part.get_payload(decode=True), 'html.parser') data = json.loads(soup.find('script', type="application/ld+json").string) address = data['reservationFor']['location']['address'] -- cgit v1.2.3