Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information