mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-30 06:25:28 -04:00
fix lgtm alerts
This commit is contained in:
parent
04c951cdd5
commit
7d0f5653c3
2 changed files with 2 additions and 2 deletions
|
@ -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'))
|
NODE_BIN_PATH = str((Path(CONFIG["OUTPUT_DIR"]).absolute() / 'node_modules' / '.bin'))
|
||||||
sys.path.append(NODE_BIN_PATH)
|
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 urllib3
|
||||||
import requests
|
import requests
|
||||||
requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)
|
requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)
|
||||||
|
|
|
@ -10,7 +10,6 @@ from ..index.schema import Link, ArchiveResult, ArchiveOutput, ArchiveError
|
||||||
from ..system import run, chmod_file
|
from ..system import run, chmod_file
|
||||||
from ..util import (
|
from ..util import (
|
||||||
enforce_types,
|
enforce_types,
|
||||||
without_scheme,
|
|
||||||
without_fragment,
|
without_fragment,
|
||||||
without_query,
|
without_query,
|
||||||
path,
|
path,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue