mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
ensure DOM HTML dump is non-zero length file when retrying
This commit is contained in:
parent
f94e8cd9b2
commit
9599845b56
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ def should_save_dom(link: Link, out_dir: Optional[Path]=None, overwrite: Optiona
|
|||
|
||||
out_dir = out_dir or Path(link.link_dir)
|
||||
if not overwrite and (out_dir / 'output.html').exists():
|
||||
if (out_dir / 'output.html').stat().st_size > 1:
|
||||
return False
|
||||
|
||||
return SAVE_DOM
|
||||
|
|
Loading…
Reference in a new issue