mirror of
https://gitlab.com/gnh1201/pylingva.git
synced 2025-02-06 06:55:26 +00:00
Update pylingva.py
This commit is contained in:
parent
657edc64ab
commit
035df198fd
|
@ -4,9 +4,10 @@ import requests as req
|
|||
|
||||
class pylingva:
|
||||
|
||||
def __init__(self, url):
|
||||
if not url:
|
||||
url = "https://lingva.ml"
|
||||
def __init__(self, server_url = None):
|
||||
url = "https://lingva.ml"
|
||||
if server_url:
|
||||
url = server_url
|
||||
|
||||
try:
|
||||
check_url = req.get(url)
|
||||
|
|
Loading…
Reference in New Issue
Block a user