Change ModuleNotFoundError to ImportError

THat's what you get from developing with Python 3.6 instead of 3.5
This commit is contained in:
Jaime van Kessel 2020-01-06 15:53:55 +01:00
parent 116ea76fbb
commit 2a09404235
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ from UM.Logger import LogOutput
from typing import Set
try:
from sentry_sdk import add_breadcrumb
except ModuleNotFoundError:
except ImportError:
pass
from typing import Optional
import os