Update pylingva.py

This commit is contained in:
Namhyeon Go 2024-06-07 06:07:05 +00:00
parent 6bb27154bd
commit 24f432bdf0

View File

@ -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()