From c9a911870de0921a4a24ccfac53265b6c4d917cf Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 8 Apr 2020 16:58:39 +0200 Subject: [PATCH] new tiramisu_cmdline_parser version --- tiramisu_cmdline_parser/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tiramisu_cmdline_parser/__init__.py b/tiramisu_cmdline_parser/__init__.py index 59ce423..38b03dc 100644 --- a/tiramisu_cmdline_parser/__init__.py +++ b/tiramisu_cmdline_parser/__init__.py @@ -1,4 +1,9 @@ -from .api import TiramisuCmdlineParser +try: + from .api import TiramisuCmdlineParser +except ImportError as err: + import warnings + warnings.warn("cannot not import TiramisuCmdlineParser {err}", ImportWarning) + TiramisuCmdlineParser = None __version__ = "0.5" __all__ = ('TiramisuCmdlineParser',)