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