1
0
Fork 0
mirror of synced 2024-05-11 16:03:33 +12:00

fix lgtm alerts

This commit is contained in:
Nick Sweeting 2021-02-01 02:27:24 -05:00
parent 04c951cdd5
commit 7d0f5653c3
2 changed files with 2 additions and 2 deletions

View file

@ -915,7 +915,8 @@ os.umask(0o777 - int(OUTPUT_PERMISSIONS, base=8)) # noqa: F821
NODE_BIN_PATH = str((Path(CONFIG["OUTPUT_DIR"]).absolute() / 'node_modules' / '.bin'))
sys.path.append(NODE_BIN_PATH)
if not CHECK_SSL_VALIDITY:
# disable stderr "you really shouldnt disable ssl" warnings with library config
if not CONFIG['CHECK_SSL_VALIDITY']:
import urllib3
import requests
requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)

View file

@ -10,7 +10,6 @@ from ..index.schema import Link, ArchiveResult, ArchiveOutput, ArchiveError
from ..system import run, chmod_file
from ..util import (
enforce_types,
without_scheme,
without_fragment,
without_query,
path,