mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-18 06:18:25 +00:00
fix import_path None error
This commit is contained in:
parent
e6d5cd4432
commit
74b99fe9eb
1 changed files with 6 additions and 5 deletions
|
@ -73,11 +73,12 @@ def merge_links(archive_path=OUTPUT_DIR, import_path=None, only_new=False):
|
||||||
num_new_links = len(all_links) - len(existing_links)
|
num_new_links = len(all_links) - len(existing_links)
|
||||||
if SHOW_PROGRESS:
|
if SHOW_PROGRESS:
|
||||||
print()
|
print()
|
||||||
print(' > Adding {} new links to index from {} (parsed as {} format)'.format(
|
if import_path:
|
||||||
num_new_links,
|
print(' > Adding {} new links to index from {} (parsed as {} format)'.format(
|
||||||
pretty_path(import_path),
|
num_new_links,
|
||||||
parser_name,
|
pretty_path(import_path),
|
||||||
))
|
parser_name,
|
||||||
|
))
|
||||||
|
|
||||||
if only_new:
|
if only_new:
|
||||||
return new_links(all_links, existing_links)
|
return new_links(all_links, existing_links)
|
||||||
|
|
Loading…
Add table
Reference in a new issue