mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-10-25 18:40:17 -04:00
Return not found instead of remote error on missing document
This commit is contained in:
parent
ed66b4873e
commit
6181f62d93
1 changed files with 4 additions and 0 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue