mirror of
https://gitlab.com/gnh1201/pylingva.git
synced 2025-05-09 05:06:42 +00:00
Update pylingva.py
This commit is contained in:
parent
6bb27154bd
commit
24f432bdf0
|
@ -4,7 +4,10 @@ import requests as req
|
||||||
|
|
||||||
class pylingva:
|
class pylingva:
|
||||||
|
|
||||||
def __init__(self, url = "https://lingva.ml"):
|
def __init__(self, url):
|
||||||
|
if not url:
|
||||||
|
url = "https://lingva.ml"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
check_url = req.get(url)
|
check_url = req.get(url)
|
||||||
check_url.raise_for_status()
|
check_url.raise_for_status()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user