summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--picross/tofu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/picross/tofu.py b/picross/tofu.py
index d2fc3d8..f188e9a 100644
--- a/picross/tofu.py
+++ b/picross/tofu.py
@@ -36,6 +36,8 @@ class TofuDatabase:
def read(self) -> list:
"""Reads all TOFU entries from DB
"""
+ if not self.db_file.exists():
+ open(self.db_file, 'a').close()
with open(self.db_file) as f:
reader = csv.reader(f)
tofu_entries = [