From 5ff4c200d82ac04526b2850d53aea828998b8994 Mon Sep 17 00:00:00 2001 From: LordJay23 Date: Wed, 6 Dec 2017 21:02:27 -0500 Subject: [PATCH] Another Unicode Fix --- mylar/opds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mylar/opds.py b/mylar/opds.py index 958e6856..ffc2bd18 100644 --- a/mylar/opds.py +++ b/mylar/opds.py @@ -99,9 +99,9 @@ class OPDS(object): def _uni(self, instr): outstr = "" try: - outstr = unicode(instr, "ascii") - except UnicodeError: outstr = unicode(instr, "utf-8") + except UnicodeError: + return instr return outstr def _dic_from_query(self, query):