diff --git a/clients/veracrypt.py b/clients/veracrypt.py index 1dcf157..adc0651 100644 --- a/clients/veracrypt.py +++ b/clients/veracrypt.py @@ -5,6 +5,7 @@ """ import copy import urllib.request +from urllib.error import URLError import re from datetime import datetime, date from bs4 import BeautifulSoup @@ -21,9 +22,12 @@ def getEditions(template): template.latest = False # Looking for releases - body = urllib.request.urlopen("https://www.veracrypt.fr/en/Downloads.html").read() - soup = BeautifulSoup(body, "html5lib") + try: + body = urllib.request.urlopen("https://www.veracrypt.fr/en/Downloads.html").read() + except URLError: + return result + soup = BeautifulSoup(body, "html5lib") h3 = soup.find("h3") #