From 23936e11210e7cfca2c5df93631069eb061f6e3e Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Sat, 4 Dec 2021 15:29:04 -0500 Subject: [PATCH] workaround failing sphinx-argparse typing imports (relates to https://github.com/ashb/sphinx-argparse/issues/7) --- weaver/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/weaver/cli.py b/weaver/cli.py index 49651b7bb..738b923f0 100644 --- a/weaver/cli.py +++ b/weaver/cli.py @@ -25,7 +25,12 @@ from requests import Response - from weaver.typedefs import CWL, HeadersType, JSON + # avoid failing sphinx-argparse documentation + # https://github.com/ashb/sphinx-argparse/issues/7 + try: + from weaver.typedefs import CWL, HeadersType, JSON + except ImportError: + pass LOGGER = logging.getLogger(__name__)