Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BF: do or to "" to ensure that we do not end up treating None as str (#…
…433) * BF: do or to "" to ensure that we do not end up treating None as str We started to get a test in dandi-cli to error out E + '"/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/nwbinspector/nwbinspector.py", ' E + 'line 632, in _intercept_in_vitro_protein\n' E + ' and getattr(subject, "subject_id", "").startswith("protein")\n' E + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n' E + "AttributeError: 'NoneType' object has no attribute 'startswith'\n", I didn't test yet but this I think should fix it * Update CHANGELOG.md * add test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Cody Baker <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information