added requests lib for network communication
This commit is contained in:
parent
debf0461bb
commit
f78e57f837
@ -8,6 +8,7 @@ phone =
|
||||
email =
|
||||
nid =
|
||||
theme = light
|
||||
ignore_network = 0
|
||||
|
||||
[apps]
|
||||
dhiraagu = 0
|
||||
|
@ -1 +1,2 @@
|
||||
flet==0.22.*
|
||||
requests
|
||||
|
@ -1,9 +1,10 @@
|
||||
import requests
|
||||
|
||||
|
||||
def checkInternet():
|
||||
try:
|
||||
requests.get(
|
||||
"https://rest.ensembl.org/info/ping?content-type=application/json",
|
||||
'https://rest.ensembl.org/info/ping?content-type=application/json',
|
||||
)
|
||||
return True
|
||||
except requests.ConnectionError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user