readthedocs / readthedocs.org

The source code that powers readthedocs.org
https://readthedocs.org/
MIT License
7.92k stars 3.58k forks source link

VCS: check for the class before using it #11399

Closed humitos closed 2 weeks ago

sentry-io[bot] commented 2 weeks ago

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: readthedocs/projects/models.py

Function Unhandled Issue
get_default_branch KeyError: 'version_identifier' /projects/{project...
Event Count: 80
get_default_branch KeyError: 'version_identifier' /_/api/v2/footer_h...
Event Count: 48
get_default_branch AttributeError: 'NoneType' object has no attribute 'fallback_branch' /_...
Event Count: 36
get_default_branch AttributeError: 'NoneType' object has no attribute 'fallback_branch' /proj...
Event Count: 17

Did you find this useful? React with a 👍 or 👎