Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Nov 6, 2022
1 parent 0909f87 commit 359f53d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dictdatabase/io_unsafe.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ def read_index_file(db_name: str):
path = f"{config.storage_directory}/.ddb/{db_name.replace('/', '___')}.index"
Path(path).parent.mkdir(parents=True, exist_ok=True)
if not os.path.exists(path):
print("Index file does not exist")
return {}
with open(path, "rb") as f:
print("Index file exists")
return orjson.loads(f.read())


Expand Down

0 comments on commit 359f53d

Please sign in to comment.