10000 fix: Import blinker check (#860) · philipluk/sentry-python@9af0dc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9af0dc8

Browse files
authored
fix: Import blinker check (getsentry#860)
* fix: Import blinker check * fix: linter
1 parent e12a350 commit 9af0dc8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

mypy.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ ignore_missing_imports = True
5454
ignore_missing_imports = True
5555
[mypy-pure_eval.*]
5656
ignore_missing_imports = True
57-
57+
[mypy-blinker.*]
58+
ignore_missing_imports = True
5859
[mypy-sentry_sdk._queue]
5960
ignore_missing_imports = True
6061
disallow_untyped_defs = False

sentry_sdk/integrations/flask.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
except ImportError:
4444
raise DidNotEnable("Flask is not installed")
4545

46+
try:
47+
import blinker # noqa
48+
except ImportError:
49+
raise DidNotEnable("blinker is not installed")
4650

4751
TRANSACTION_STYLE_VALUES = ("endpoint", "url")
4852

0 commit comments

Comments
 (0)
0