Fixed travis failures

Flak8 and when no user existed failure fixed. 
User does not exist is really not what's going on here. The user exists and is perfectly fine. More like "User profile not updated.". Also you need to log something meaningful. See how it's done below.