mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 23:00:28 +00:00
Return not found instead of remote error on missing document
This commit is contained in:
1 parent
ed66b4873e
commit
6181f62d93
1 file changed
+4
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user