From d9380eb2cf54fd2218b2731917b3c72a83825c56 Mon Sep 17 00:00:00 2001 From: gwen Date: Thu, 4 Apr 2019 15:43:05 +0200 Subject: [PATCH] ImportError is deprecated -> ModuleNotFoundError --- tiramisu_cmdline_parser/tiramisu_cmdline_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiramisu_cmdline_parser/tiramisu_cmdline_parser.py b/tiramisu_cmdline_parser/tiramisu_cmdline_parser.py index fe7557a..bd06fdb 100644 --- a/tiramisu_cmdline_parser/tiramisu_cmdline_parser.py +++ b/tiramisu_cmdline_parser/tiramisu_cmdline_parser.py @@ -20,14 +20,14 @@ from copy import copy try: from tiramisu import Config from tiramisu.error import PropertiesOptionError -except ImportError: +except ModuleNotFoundError: Config = None from tiramisu_json_api.error import PropertiesOptionError try: from tiramisu_json_api import Config as ConfigJson if Config is None: Config = ConfigJson -except ImportError: +except ModuleNotFoundError: ConfigJson = Config