mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 04:33:11 +00:00
flake8
This commit is contained in:
parent
b864c38d9e
commit
983f485cc0
1 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
|
||||||
else:
|
else:
|
||||||
# print('{black} X {}{reset}'.format(method_name, **ANSI))
|
# print('{black} X {}{reset}'.format(method_name, **ANSI))
|
||||||
stats['skipped'] += 1
|
stats['skipped'] += 1
|
||||||
except Exception as e:
|
except Exception:
|
||||||
# Disabled until https://github.com/ArchiveBox/ArchiveBox/issues/984
|
# Disabled until https://github.com/ArchiveBox/ArchiveBox/issues/984
|
||||||
# and https://github.com/ArchiveBox/ArchiveBox/issues/1014
|
# and https://github.com/ArchiveBox/ArchiveBox/issues/1014
|
||||||
# are fixed.
|
# are fixed.
|
||||||
|
@ -138,7 +138,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
|
||||||
link.url,
|
link.url,
|
||||||
)) from e
|
)) from e
|
||||||
"""
|
"""
|
||||||
# Instead, use the kludgy workaround from
|
# Instead, use the kludgy workaround from
|
||||||
# https://github.com/ArchiveBox/ArchiveBox/issues/984#issuecomment-1150541627
|
# https://github.com/ArchiveBox/ArchiveBox/issues/984#issuecomment-1150541627
|
||||||
with open(ERROR_LOG, "a", encoding='utf-8') as f:
|
with open(ERROR_LOG, "a", encoding='utf-8') as f:
|
||||||
command = ' '.join(sys.argv)
|
command = ' '.join(sys.argv)
|
||||||
|
@ -147,7 +147,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
|
||||||
method_name,
|
method_name,
|
||||||
link.url,
|
link.url,
|
||||||
) + "\n"))
|
) + "\n"))
|
||||||
#f.write(f"\n> {command}; ts={ts} version={config['VERSION']} docker={config['IN_DOCKER']} is_tty={config['IS_TTY']}\n")
|
f.write(f"\n> {command}; ts={ts} version={config['VERSION']} docker={config['IN_DOCKER']} is_tty={config['IS_TTY']}\n")
|
||||||
|
|
||||||
# print(' ', stats)
|
# print(' ', stats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue