-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
CodersHQ/codershq/users/validators.py
Line 15
in
40400f7
def validate_github_profile(value):
CodersHQ/codershq/users/validators.py
Line 15 in 40400f7
def validate_github_profile(value): |
Why not just use an additional step that uses request
to check if the userprofile exists or not? Like:
>>> import requests
>>> req = requests.get('https://www.github.com/SomeUserThatDoesNotExistsHopefully')
>>> req.status_code
404
>>> req = requests.get('https://www.github.com/delrius-euphoria')
>>> req.status_code
200
Metadata
Metadata
Assignees
Labels
No labels