From b934a93b29c38631f12f4514c5412bbf9803f098 Mon Sep 17 00:00:00 2001 From: ceilbeck Date: Tue, 18 Jul 2023 15:14:06 +0100 Subject: [PATCH] Update key_wd_PDF_search.py added lines to prevent some problems with Unicode symbol \u2217 --- key_wd_PDF_search.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/key_wd_PDF_search.py b/key_wd_PDF_search.py index 804e339..7a4c27f 100644 --- a/key_wd_PDF_search.py +++ b/key_wd_PDF_search.py @@ -100,6 +100,9 @@ def main(): kw_list(text2, k_wds, key_wds, key_wds_overall, op_f) if text1 is None and text2 is None: op_f.write(f"Page {i+1}, no matches this page\n") + except : UnicodeEncodeError: + print("") + # print("Unicode error") # '\u2217'? except : print("Exception!") print(fileName)