eve-val/evelink — pull request #145 by ayust (2013-11-19 02:56:32+00:00)
Title: Catch HTTPErrors from urllib2 to properly handle API errors.

The EVE API will use non-2xx HTTP codes for requests which result in an API error. urllib2 handles this by raising an HTTPError which is a subclass of URLError. This fixes the handling of HTTPErrors specifically, allowing them to avoid the current general handling of URLErrors which would cause them not to be recognized as API errors.

Fixes #144.