Merge branch 'dev' into feature/kludge-984-UTF8-bug

This commit is contained in:
Joseph Turian 2022-12-20 11:39:01 +01:00 committed by GitHub
commit 07de4a79a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -128,7 +128,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
else:
# print('{black} X {}{reset}'.format(method_name, **ANSI))
stats['skipped'] += 1
except Exception:
except Exception as e:
# Disabled until https://github.com/ArchiveBox/ArchiveBox/issues/984
# and https://github.com/ArchiveBox/ArchiveBox/issues/1014
# are fixed.

View file

@ -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)