Explorar el Código

Merge pull request #229 from pigmonkey/stdin

only use stdin if it has a value
Nick Sweeting hace 6 años
padre
commit
84fa6f6699
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      archivebox/archive.py

+ 2 - 2
archivebox/archive.py

@@ -86,8 +86,8 @@ def main(*args):
             )
             )
             print_help()
             print_help()
             raise SystemExit(1)
             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
     ### Handle ingesting urls from a remote file/feed
     # (e.g. if an RSS feed URL is used as the import path) 
     # (e.g. if an RSS feed URL is used as the import path)