Skip to content

Cannot be run wtih -OO flag #327

Description

@cramosc

After installing the version 0.7.9. I cannot run sentry with the python flag -OO (discard docstrings). This is because in sentry_sdk/integrations/__init__.py the following was addded:
iter_default_integrations.__doc__ += "\n- {}".format(import_string)
which in case of running with -OO __doc__ is None and you get the exception:
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions