mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Change ModuleNotFoundError to ImportError
THat's what you get from developing with Python 3.6 instead of 3.5
This commit is contained in:
parent
116ea76fbb
commit
2a09404235
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ from UM.Logger import LogOutput
|
||||||
from typing import Set
|
from typing import Set
|
||||||
try:
|
try:
|
||||||
from sentry_sdk import add_breadcrumb
|
from sentry_sdk import add_breadcrumb
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ from typing import TYPE_CHECKING, Dict, Any
|
||||||
try:
|
try:
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
has_sentry = True
|
has_sentry = True
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
has_sentry = False
|
has_sentry = False
|
||||||
|
|
||||||
from . import SentryLogger
|
from . import SentryLogger
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue