Skip to content

Commit

Permalink
Merge pull request #570 from llmware-ai/sqlite-decode-fix
Browse files Browse the repository at this point in the history
setting default text factory in sqlite decode
  • Loading branch information
doberst authored Apr 2, 2024
2 parents d1a3801 + 44fb7d3 commit 6ba1038
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llmware/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,8 @@ def __init__(self, library_name, account_name="llmware"):

self.conn = _SQLiteConnect().connect(library_name)

self.conn.text_factory = lambda b: b.decode(errors='ignore')

self.reserved_tables = ["status", "library", "parser_events"]
self.text_retrieval = False

Expand Down

0 comments on commit 6ba1038

Please sign in to comment.