Replace ModuleNotFoundError with ImportError

This replaces ModuleNotFoundError with ImportError to be compatible
with python2 and python3.

Change-Id: I89a7c0dd62affa5b1615cbbd2ecd0a549c171be2
This commit is contained in:
Luka Peschke 2019-10-28 16:18:56 +01:00
parent 1cf228104d
commit e8d737315c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ from paste import deploy
try:
from werkzeug.middleware import dispatcher
# In case we have werkzeug<0.15
except (ImportError, ModuleNotFoundError):
except ImportError:
from werkzeug import wsgi as dispatcher
from cloudkitty.api import root as api_root