Skip to content

Commit

Permalink
Update key_wd_PDF_search.py
Browse files Browse the repository at this point in the history
added lines to prevent some problems with Unicode symbol \u2217
  • Loading branch information
ceilbeck committed Jul 18, 2023
1 parent c08e1f7 commit b934a93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions key_wd_PDF_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b934a93

Please sign in to comment.