mattupstate/flask-security — pull request #342 by alexef (2014-11-19 12:12:10+00:00)
Title: Fail silently for get_user(None)

get_user(identifier) checks if the identifier is a number by trying to convert it to int. This works for strings, but in a particular case, when identifier is None, it fails. Checking for both TypeError and ValueError fixes it.