def get_user(self, identifier):
        try:
            return self.user_model.get(self.user_model.id == identifier)
        except __HOLE__:
            pass

        for attr in get_identity_attributes():
            column = getattr(self.user_model, attr)
            try:
                return self.user_model.get(column ** identifier)
            except self.user_model.DoesNotExist:
                pass
dataset/ETHPy150Open mattupstate/flask-security/flask_security/datastore.py/PeeweeUserDatastore.get_user