rackspace/pyrax — pull request #193 by briancurtin (2013-09-19 20:12:54+00:00)
Title: Hande 400 errors in pyrax.identity.create_user

Previously, 400 errors were being silently ignored, so `pyrax.identity.create_user("name", "invalidemail")` would return None. In reality, this was getting an HTTP 400 error with a message about an invalid email address being passed in. We now check if the HTTP message includes text about invalid email, then raise `pyrax.exceptions.InvalidEmail` if so, otherwise raise a generic `pyrax.exceptions.BadRequest`.

This fixes #168.