From 34270b2b1239b948d9598b7bb6ea8b31131066b8 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Tue, 30 Apr 2019 17:25:41 -0700 Subject: [PATCH] only use stdin if it has a value Closes #228 --- archivebox/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/archive.py b/archivebox/archive.py index 5c0d195d..3e553e6e 100755 --- a/archivebox/archive.py +++ b/archivebox/archive.py @@ -86,8 +86,8 @@ def main(*args): ) print_help() raise SystemExit(1) - - import_path = save_stdin_source(stdin_raw_text) + if stdin_raw_text: + import_path = save_stdin_source(stdin_raw_text) ### Handle ingesting urls from a remote file/feed # (e.g. if an RSS feed URL is used as the import path)