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