Return not found instead of remote error on missing document

This commit is contained in:
Mark Qvist
2026-05-21 15:31:22 +02:00
parent ed66b4873e
commit 6181f62d93
+4
View File
@@ -3912,6 +3912,8 @@ class ReticulumGitNode():
doc_dir = d
break
if not doc_dir: return self.RES_NOT_FOUND.to_bytes(1, "big") + b"Not found"
doc_dir = os.path.join(work_path, scope, str(doc_id))
root_path = os.path.join(doc_dir, "root")
@@ -4075,6 +4077,8 @@ class ReticulumGitNode():
doc_dir = d
break
if not doc_dir: return self.RES_NOT_FOUND.to_bytes(1, "big") + b"Not found"
doc_dir = os.path.join(work_path, scope, str(doc_id))
root_path = os.path.join(doc_dir, "root")