To contribute code to the Pathway project, start by discussing your proposed changes on Discord or by filing an issue.
Once approved, follow the fork + pull request model against the main branch, ensuring you've signed the contributor license agreement.
Context
This change addresses a potential issue where the metadata variable might be None. In such cases, attempting to access metadata.value would raise an AttributeError. This fix ensures that we handle the None case gracefully by assigning an empty dictionary, preventing potential runtime errors.
How has this been tested?
Indexing your contents, then stopping server and reindexing.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature or improvement (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Related issue(s):
Checklist:
[x] My code follows the code style of this project,
[ ] My change requires a change to the documentation,
[ ] I described the modification in the CHANGELOG.md file.
Introduction
To contribute code to the Pathway project, start by discussing your proposed changes on Discord or by filing an issue. Once approved, follow the fork + pull request model against the main branch, ensuring you've signed the contributor license agreement.
Context
This change addresses a potential issue where the metadata variable might be None. In such cases, attempting to access metadata.value would raise an AttributeError. This fix ensures that we handle the None case gracefully by assigning an empty dictionary, preventing potential runtime errors.
How has this been tested?
Indexing your contents, then stopping server and reindexing.
Types of changes
Related issue(s):
Checklist: