Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Import blinker check #860

Merged
merged 2 commits into from Oct 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion mypy.ini
Expand Up @@ -54,7 +54,8 @@ ignore_missing_imports = True
ignore_missing_imports = True
[mypy-pure_eval.*]
ignore_missing_imports = True

[mypy-blinker.*]
ignore_missing_imports = True
[mypy-sentry_sdk._queue]
ignore_missing_imports = True
disallow_untyped_defs = False
4 changes: 4 additions & 0 deletions sentry_sdk/integrations/flask.py
Expand Up @@ -43,6 +43,10 @@
except ImportError:
raise DidNotEnable("Flask is not installed")

try:
import blinker # noqa
except ImportError:
raise DidNotEnable("blinker is not installed")

TRANSACTION_STYLE_VALUES = ("endpoint", "url")

Expand Down