mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-18 00:54:26 -04:00
fix bug checking value in subcommand_args when None
This commit is contained in:
parent
79fb60a47a
commit
211bf86f4a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue