diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-01-06 17:53:55 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-01-06 17:53:55 +0300 |
commit | 2a094042356b3964f7eba1677fdc2b3a0459bc80 (patch) | |
tree | 7997ed567516d455779cca42cdaee0535692adbd /plugins/SentryLogger/__init__.py | |
parent | 116ea76fbb7284c2d87ca6cd2437baba07e62c18 (diff) |
Change ModuleNotFoundError to ImportError
THat's what you get from developing with Python 3.6 instead of 3.5
Diffstat (limited to 'plugins/SentryLogger/__init__.py')
-rw-r--r-- | plugins/SentryLogger/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SentryLogger/__init__.py b/plugins/SentryLogger/__init__.py index 16288bb1b3..1b6b4bf7f8 100644 --- a/plugins/SentryLogger/__init__.py +++ b/plugins/SentryLogger/__init__.py @@ -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 |