mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
flake8
This commit is contained in:
parent
983f485cc0
commit
daef48e59b
1 changed files with 3 additions and 2 deletions
|
@ -143,11 +143,12 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
|
||||||
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)
|
||||||
ts = datetime.now(timezone.utc).strftime('%Y-%m-%d__%H:%M:%S')
|
ts = datetime.now(timezone.utc).strftime('%Y-%m-%d__%H:%M:%S')
|
||||||
f.write(("\n" + 'Exception in archive_methods.save_{}(Link(url={}))'.format(
|
f.write(("\n" + 'Exception in archive_methods.save_{}(Link(url={})) command={}'.format(
|
||||||
method_name,
|
method_name,
|
||||||
link.url,
|
link.url,
|
||||||
|
command
|
||||||
) + "\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…
Add table
Add a link
Reference in a new issue