Skip to content

Commit

Permalink
Do not check for repo header on student list
Browse files Browse the repository at this point in the history
This makes GitHub stop responding, making egrader assume that
a number of student repos are not available, when they in fact
are
  • Loading branch information
nunofachada committed Apr 23, 2024
1 parent 9653d83 commit ab20bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egrader/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Dict, List
from urllib.parse import urlparse

import requests
# import requests
import validators
from yarl import URL

Expand Down Expand Up @@ -32,7 +32,7 @@ def __init__(self, sid: str, email: str, url: str) -> None:
elif (
u.scheme in {"http", "https"} # Is it a HTTP/HTTPS URL?
and validators.url(url) # Is it a well-formed URL?
and requests.head(url).status_code < 400 # Valid net resource (200)?
# and requests.head(url).status_code < 400 # Valid net resource (200)?
):
self.url_type = u.scheme
self._url = url
Expand Down

0 comments on commit ab20bd8

Please sign in to comment.