mirror of
https://github.com/OpenFreeEnergy/openfe.git
synced 2026-06-04 22:34:24 +08:00
9 lines
156 B
Python
9 lines
156 B
Python
import urllib.request
|
|
|
|
try:
|
|
urllib.request.urlopen('https://www.google.com')
|
|
except: # -no-cov-
|
|
HAS_INTERNET = False
|
|
else:
|
|
HAS_INTERNET = True
|