Projects
home:sicherha:branches:Kolab:16
pykolab-python3
0001-T8337-Fix-UnicodeDecodeError-in-wallace.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-T8337-Fix-UnicodeDecodeError-in-wallace.patch of Package pykolab-python3 (Revision 5)
Currently displaying revision
5
,
Show latest
From 0b38809701d43140840c8e83fc0b4c90ef272163 Mon Sep 17 00:00:00 2001 Message-ID: <0b38809701d43140840c8e83fc0b4c90ef272163.1726868869.git.kolab@sicherha.de> From: Christoph Erhardt <kolab@sicherha.de> Date: Fri, 20 Sep 2024 23:42:37 +0200 Subject: [PATCH] T8337: Fix `UnicodeDecodeError` in wallace Reviewers: mollekopf Differential Revision: https://git.kolab.org/D4959 --- wallace/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallace/modules.py b/wallace/modules.py index f774e6e..e4a4ab6 100644 --- a/wallace/modules.py +++ b/wallace/modules.py @@ -369,7 +369,7 @@ def cb_action_ACCEPT(module, filepath): log.debug(_("Accepting message in: %r") %(filepath), level=8) # parse message headers - message = Parser().parse(open(filepath, 'r'), True) + message = Parser().parse(open(filepath, 'r', encoding="utf8", errors="ignore"), True) messageid = message['message-id'] if 'message-id' in message else None sender = [formataddr(x) for x in getaddresses(message.get_all('X-Kolab-From', []))] -- 2.46.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.