Closed tjann closed 4 years ago
I was on the fence between doing lenient key error handling or throwing errors if REST response didn't follow the expectations.
The former might be nice for us to have more time to fix issues when REST changes, but also makes it difficult for us to know when something is wrong. So I opted for the latter in the spirit of failing fast.
The error handling here seems reasonable to me, since those are truly errors that should get looked at (and isn't a matter of a 1 missing data out of 1000 calls).
Thanks all for the review!
Before code changes:
After code changes: