Catch error when getting user info

Signed-off-by: Michal Čihař <michal@cihar.com>