Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sourcerepo-sync): improve debugability (#2700)
Problem: ``` + poetry run python source_sync.py --kind SourceRepository --project oss-vdb-test --file ../../source_test.yaml --no-dry-run --verbose Loaded 26 local source repositories Validated 26 source repositories Retrieved 26 source repositories from datastore Traceback (most recent call last): File "/workspace/tools/sourcerepo-sync/source_sync.py", line 162, in <module> main() File "/workspace/tools/sourcerepo-sync/source_sync.py", line 134, in main validate_repository(ds_repos, False) File "/workspace/tools/sourcerepo-sync/source_sync.py", line 69, in validate_repository if 'link' in repo and repo['link'][-1] != '/': ~~~~~~~~~~~~^^^^ TypeError: 'NoneType' object is not subscriptable ``` happening on #2699 was harder to get to the bottom of than I'd have liked... Capture some of the knowledge gained as part of debugging this in some basic service documentation to help the next person
- Loading branch information