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