ImportError is deprecated -> ModuleNotFoundError

This commit is contained in:
gwen 2019-04-04 15:43:05 +02:00
parent b67a1ec430
commit 1fed1eef8e
1 changed files with 2 additions and 2 deletions

View File

@ -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