Files
openfe/openfecli/tests/conftest.py
Alyssa Travitz b693d37c8a ruff: address pycodestyle changes (#1668)
* apply E741: ambiguous variable name check

* apply E713: 'not in' fixes

* address E721 with isintance() checks

* fix bare excepts

* precommit
2025-11-11 11:34:29 -07:00

10 lines
198 B
Python

import urllib.error
import urllib.request
try:
urllib.request.urlopen("https://www.google.com")
except urllib.error.URLError: # -no-cov-
HAS_INTERNET = False
else:
HAS_INTERNET = True