---
Notes:
Note that we should probably support ~/.local/share/gemini/known_hosts
(but that uses a different fingerprint format, so we may have to mind for backwards compatibility)
picross/tofu.py | 2 ++
1 file changed, 2 insertions(+)
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 = [
--
2.29.2
On November 30, 2020 5:28:27 AM UTC, Zach DeCook <zachdecook@librem.one> wrote:
>--->>Notes:> Note that we should probably support ~/.local/share/gemini/known_hosts>(but that uses a different fingerprint format, so we may have to mind>for backwards compatibility)>> picross/tofu.py | 2 ++> 1 file changed, 2 insertions(+)>>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 = [
Hi Zach,
This mail is to acknowledge that I have received the patch, but due to the fact that I'm not on my dev machine, I can't test it right now (though I'm 95% sure it'll work).
Will test it out on Saturday, thanks for the patch!
Speaking of ~/.local/share/gemini/known_hosts, which I was not aware of, I plan to search through the list archive and find out.
~fkfd