mirror of
https://gitlab.com/gnh1201/pylingva.git
synced 2025-02-06 15:05:44 +00:00
Update pylingva.py
This commit is contained in:
parent
e3f30d727e
commit
0cc80088b7
|
@ -4,8 +4,7 @@ import requests as req
|
|||
|
||||
class pylingva:
|
||||
|
||||
def __init__(self):
|
||||
url = "https://lingva.ml"
|
||||
def __init__(self, url = "https://lingva.ml"):
|
||||
try:
|
||||
check_url = req.get(url)
|
||||
check_url.raise_for_status()
|
||||
|
|
Loading…
Reference in New Issue
Block a user