Fix typo
This commit is contained in:
parent
fd642203d7
commit
9bbd306ae5
1 changed files with 3 additions and 1 deletions
|
|
@ -1,10 +1,12 @@
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -70,7 +72,7 @@ def _update_domains(updated_domains, api_url, token, read_only):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except request.HTTPError as e:
|
except requests.HTTPError:
|
||||||
logger.exception(f"Unable to update domain {domain}")
|
logger.exception(f"Unable to update domain {domain}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue