Added error handling of PyPI client.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>