This commit is contained in:
sonny 2021-05-29 20:34:24 +02:00
parent e780024140
commit 698c7b947b
4 changed files with 218 additions and 166 deletions

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