mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-22 06:03:23 +02:00
fix bug checking value in subcommand_args when None
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user