Just noticed a minor typo here from before
Looks good to me!
Here you can do a simple: if response if that response is a requests request object.
if response
@pingou is right! You can treat those response objects as booleans, which is very handy.
Nonetheless, I'm going to merge this as-is. @shalini, if you want to change the way you handle those response objects later, feel free to!