getsentry / getsentry/sentry-python

Refactor the `extract_contents_message` function

Open
#5,974 1 comment 0 reactions 0 assignees View on GitHub
Python Refactoring Task
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 1h
Merged PRs (30d)
213

Description

This function is overly complex and is difficult to follow, especially given all the possible permutations that can be passed in as `content`. This has led to edge cases

Recommend addressing this before tackling something like [PY-2289](https://linear.app/getsentry/issue/PY-2289/improve-processing-of-content-argument-thats-passed-in-to-generate)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.