2
0
Эх сурвалжийг харах

fix bug checking value in subcommand_args when None

Nick Sweeting 4 жил өмнө
parent
commit
211bf86f4a

+ 2 - 0
archivebox/cli/__init__.py

@@ -60,6 +60,8 @@ def run_subcommand(subcommand: str,
                    pwd: Union[Path, str, None]=None) -> None:
                    pwd: Union[Path, str, None]=None) -> None:
     """Run a given ArchiveBox subcommand with the given list of args"""
     """Run a given ArchiveBox subcommand with the given list of args"""
 
 
+    subcommand_args = subcommand_args or []
+
     if subcommand not in meta_cmds:
     if subcommand not in meta_cmds:
         from ..config import setup_django
         from ..config import setup_django