Closed Mab879 closed 1 year ago
Add check to see if the diff key is in diff["values_changed"]["root"] . If the file only has whitespace changes, it appears this is not set and causes key errors.
diff
diff["values_changed"]["root"]
Discovered by ComplianceAsCode/content/pull/9788.
The issues from DeepSource don't seem directly related to my changes. Let me know if you see it differently.
Add check to see if the
diff
key is indiff["values_changed"]["root"]
. If the file only has whitespace changes, it appears this is not set and causes key errors.Discovered by ComplianceAsCode/content/pull/9788.