ImportError is deprecated -> ModuleNotFoundError
This commit is contained in:
parent
cb41e731ea
commit
d9380eb2cf
1 changed files with 2 additions and 2 deletions
|
@ -20,14 +20,14 @@ from copy import copy
|
||||||
try:
|
try:
|
||||||
from tiramisu import Config
|
from tiramisu import Config
|
||||||
from tiramisu.error import PropertiesOptionError
|
from tiramisu.error import PropertiesOptionError
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
Config = None
|
Config = None
|
||||||
from tiramisu_json_api.error import PropertiesOptionError
|
from tiramisu_json_api.error import PropertiesOptionError
|
||||||
try:
|
try:
|
||||||
from tiramisu_json_api import Config as ConfigJson
|
from tiramisu_json_api import Config as ConfigJson
|
||||||
if Config is None:
|
if Config is None:
|
||||||
Config = ConfigJson
|
Config = ConfigJson
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
ConfigJson = Config
|
ConfigJson = Config
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue