Fix exception logging

This code isnt actually using requests, so calls to raise_for_status
raise an AttributeError, which is silently caught and logged.  This
fixes this to raise a more useful error message.