Skip to content

Commit

Permalink
fix: Import blinker check (#860)
Browse files Browse the repository at this point in the history
* fix: Import blinker check

* fix: linter
  • Loading branch information
HazAT committed Oct 16, 2020
1 parent e12a350 commit 9af0dc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 9af0dc8

Please sign in to comment.