-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix 'NoneType' object is not subscriptable (#160)
Fix for https://l.codecov.dev/hqZ1Ci (Sentry issue) The error itself is `TypeError: 'NoneType' object is not subscriptable`. This was happening because if we don't have static analysis for a file the lines relevant for that file might be `None`, and we we're not checking this condition prior to starting to access the dict items. The fix itself is very simple, but I wanted to add type hints and better tests too, so they're in the change as well.
- Loading branch information
1 parent
9bc093f
commit db1ffbf
Showing
2 changed files
with
81 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters