mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 12:13:05 +00:00
Method typo?
Fixes '[Errno 2] No such file or directory' error during add
This commit is contained in:
parent
9b65639a59
commit
2db830c6a8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue