This commit is contained in:
sonny 2021-05-29 16:46:42 +02:00
parent fd642203d7
commit 9bbd306ae5

View file

@ -1,10 +1,12 @@
import json
import logging
import subprocess
from concurrent.futures import ThreadPoolExecutor, as_completed
import requests
logger = logging.getLogger(__name__)
@ -70,7 +72,7 @@ def _update_domains(updated_domains, api_url, token, read_only):
try:
response.raise_for_status()
except request.HTTPError as e:
except requests.HTTPError:
logger.exception(f"Unable to update domain {domain}")
continue