mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
flip link_archive exception throw order so real exception is easier to read at the bottom
This commit is contained in:
parent
6742888278
commit
ee5bec6a10
1 changed files with 2 additions and 2 deletions
|
@ -181,10 +181,10 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
|
||||||
#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(f' ERROR: {method_name} {e.__class__.__name__}: {e} {getattr(e, "hints", "")}', ts, link.url, command)
|
# print(f' ERROR: {method_name} {e.__class__.__name__}: {e} {getattr(e, "hints", "")}', ts, link.url, command)
|
||||||
raise Exception('Exception in archive_methods.save_{}(Link(url={}))'.format(
|
raise e from Exception('Exception in archive_methods.save_{}(Link(url={}))'.format(
|
||||||
method_name,
|
method_name,
|
||||||
link.url,
|
link.url,
|
||||||
)) from e
|
))
|
||||||
|
|
||||||
|
|
||||||
# print(' ', stats)
|
# print(' ', stats)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue