From 7d0f5653c3f6699b2444ddf2682e3718827a886a Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 1 Feb 2021 02:27:24 -0500 Subject: [PATCH] fix lgtm alerts --- archivebox/config.py | 3 ++- archivebox/extractors/wget.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/config.py b/archivebox/config.py index f984d027..349817ec 100644 --- a/archivebox/config.py +++ b/archivebox/config.py @@ -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) diff --git a/archivebox/extractors/wget.py b/archivebox/extractors/wget.py index e0617bde..4d04f673 100644 --- a/archivebox/extractors/wget.py +++ b/archivebox/extractors/wget.py @@ -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,