Skip to content

Commit 51f144a

Browse files
committed
Close local_db
1 parent ab767a4 commit 51f144a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/corpus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
# create a local corpus database if it does not already exist
5252
if not os.path.exists(_CORPUS_DB_PATH):
53-
TinyDB(_CORPUS_DB_PATH)
53+
TinyDB(_CORPUS_DB_PATH).close()
5454

5555

5656
def corpus_path() -> str:

0 commit comments

Comments
 (0)