Network I/O runs at import and during image build, so transient TLS resets from the holidays site abort startup or CI with requests.exceptions.ConnectionError, making builds non-deterministic. The request also lacks an explicit timeout/retry policy, so brief outages or slow servers fail hard instead of backing off and recovering.
#utils/dates.py
# module import triggers network fetch
hol_dates, holidays, hdays = get_holidates()
def get_holidates():
url = "https://www.iitkgp.ac.in/holidays"
result = requests.get(url).text # no timeout/retries
...