[Xfce4-commits] [apps/catfish] 01/01: Replace unicode decode errors in external search method (bug #14490)

noreply at xfce.org noreply at xfce.org
Sat Jun 30 04:33:06 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/catfish.

commit 3ef59849c3bd9982da5bf11bee038583560660d6
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Fri Jun 29 22:33:00 2018 -0400

    Replace unicode decode errors in external search method (bug #14490)
---
 catfish/CatfishSearchEngine.py | 2 +-
 po/catfish.pot                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/catfish/CatfishSearchEngine.py b/catfish/CatfishSearchEngine.py
index 6709295..a9fef19 100644
--- a/catfish/CatfishSearchEngine.py
+++ b/catfish/CatfishSearchEngine.py
@@ -502,7 +502,7 @@ class CatfishSearchMethodExternal(CatfishSearchMethod):
     def process_output(self, output):
         """Return the output text."""
         if isinstance(output, io.BufferedReader):
-            return map(lambda s: s.decode(encoding='UTF8').strip(),
+            return map(lambda s: s.decode(encoding='UTF8', errors='replace').strip(),
                        output.readlines())
         else:
             return output
diff --git a/po/catfish.pot b/po/catfish.pot
index c9232aa..cc199d7 100644
--- a/po/catfish.pot
+++ b/po/catfish.pot
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-06-29 22:09-0400\n"
+"POT-Creation-Date: 2018-06-29 22:28-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list