From 211bf86f4adaaafb54631d12e14645aad97f57c8 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 5 Apr 2021 21:13:49 -0400 Subject: [PATCH] fix bug checking value in subcommand_args when None --- archivebox/cli/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archivebox/cli/__init__.py b/archivebox/cli/__init__.py index c275f517..d3ec62cc 100644 --- a/archivebox/cli/__init__.py +++ b/archivebox/cli/__init__.py @@ -60,6 +60,8 @@ def run_subcommand(subcommand: str, pwd: Union[Path, str, None]=None) -> None: """Run a given ArchiveBox subcommand with the given list of args""" + subcommand_args = subcommand_args or [] + if subcommand not in meta_cmds: from ..config import setup_django