8000 fix: TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' when Python with -O flag by medns · Pull Request #341 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content

fix: TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' when Python with -O flag #341

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

Merged
merged 1 commit into from
Apr 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions sentry_sdk/integrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ def iter_default_integrations():
module, cls = import_string.rsplit(".", 1)
yield getattr(import_module(module), cls)

for import_string in import_strings:
iter_default_integrations.__doc__ += "\n- `{}`".format( # type: ignore
5569 import_string
)
if isinstance(iter_default_integrations.__doc__, str):
for import_string in import_strings:
iter_default_integrations.__doc__ += "\n- `{}`".format( # type: ignore
import_string
)

return iter_default_integrations

Expand Down
0