Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #342 from alexef/patch-1
Browse files Browse the repository at this point in the history
Fail silently for get_user(None)
  • Loading branch information
Matt Wright committed May 2, 2015
2 parents c8a3549 + 7e4fc94 commit cd8982f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_security/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get_user(self, identifier):
def _is_numeric(self, value):
try:
int(value)
except ValueError:
except (TypeError, ValueError):
return False
return True

Expand Down

0 comments on commit cd8982f

Please sign in to comment.