Commit 1fed1eef authored by gwen's avatar gwen

ImportError is deprecated -> ModuleNotFoundError

parent b67a1ec4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment