ctype.py: fail gracefully if the request failed.