mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-23 11:17:02 -04:00
fix wget_auto_compression check prining stderr to console
This commit is contained in:
parent
68d1eb0389
commit
8283b353f4
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ try:
|
||||||
WGET_AUTO_COMPRESSION = False
|
WGET_AUTO_COMPRESSION = False
|
||||||
if USE_WGET:
|
if USE_WGET:
|
||||||
WGET_VERSION = bin_version(WGET_BINARY)
|
WGET_VERSION = bin_version(WGET_BINARY)
|
||||||
WGET_AUTO_COMPRESSION = not run([WGET_BINARY, "--compression=auto", "--help"], stdout=DEVNULL).returncode
|
WGET_AUTO_COMPRESSION = not run([WGET_BINARY, "--compression=auto", "--help"], stdout=DEVNULL, stderr=DEVNULL).returncode
|
||||||
|
|
||||||
WGET_USER_AGENT = WGET_USER_AGENT.format(
|
WGET_USER_AGENT = WGET_USER_AGENT.format(
|
||||||
VERSION=VERSION,
|
VERSION=VERSION,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue