From 74b99fe9eb68cd57e64648690a2e158952b6b18e Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 12 Feb 2019 20:04:03 -0500 Subject: [PATCH] fix import_path None error --- archivebox/archive.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/archivebox/archive.py b/archivebox/archive.py index c17870ff..b34aadc5 100755 --- a/archivebox/archive.py +++ b/archivebox/archive.py @@ -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) if SHOW_PROGRESS: print() - print(' > Adding {} new links to index from {} (parsed as {} format)'.format( - num_new_links, - pretty_path(import_path), - parser_name, - )) + if import_path: + print(' > Adding {} new links to index from {} (parsed as {} format)'.format( + num_new_links, + pretty_path(import_path), + parser_name, + )) if only_new: return new_links(all_links, existing_links)