mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 20:29:10 +08: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
@ -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
|
||||
|
@ -4,7 +4,7 @@ from typing import TYPE_CHECKING, Dict, Any
|
||||
try:
|
||||
import sentry_sdk
|
||||
has_sentry = True
|
||||
except ModuleNotFoundError:
|
||||
except ImportError:
|
||||
has_sentry = False
|
||||
|
||||
from . import SentryLogger
|
||||
|
Loading…
x
Reference in New Issue
Block a user