mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 12:13:05 +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,7 +26,8 @@ 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():
|
||||
return False
|
||||
if (out_dir / 'output.html').stat().st_size > 1:
|
||||
return False
|
||||
|
||||
return SAVE_DOM
|
||||
|
||||
|
|
Loading…
Reference in a new issue