Function to check if a domain is resolvable

main
Bob Mottram 2020-06-22 17:57:57 +01:00
parent dc9ae0c117
commit 2d970cc377
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ import shutil
import datetime
import json
from urllib.request import urlopen
from urllib.request import URLError
from pprint import pprint
from calendar import monthrange
@ -1078,5 +1077,5 @@ def siteIsActive(url: str) -> bool:
try:
urlopen(url, timeout=10)
return True
except URLError as err:
except BaseException:
return False