2
0
Эх сурвалжийг харах

Method typo?

Fixes '[Errno 2] No such file or directory' error during add
SnZ 3 жил өмнө
parent
commit
2db830c6a8

+ 1 - 1
archivebox/parsers/__init__.py

@@ -154,7 +154,7 @@ def save_text_as_source(raw_text: str, filename: str='{ts}-stdin.txt', out_dir:
 
     for entry in raw_text.split():
         try:
-            if Path(entry).exists:
+            if Path(entry).exists():
                 referenced_texts += Path(entry).read_text()
         except Exception as err:
             print(err)