1
0
Fork 0
mirror of synced 2024-06-24 17:10:21 +12:00

fix bug checking value in subcommand_args when None

This commit is contained in:
Nick Sweeting 2021-04-05 21:13:49 -04:00
parent 79fb60a47a
commit 211bf86f4a

View file

@ -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