From 1e61100d1714f77bc11896faf767e33dcaec1dd0 Mon Sep 17 00:00:00 2001 From: Cristian Ianto Date: Fri, 26 Mar 2021 08:49:30 +0200 Subject: [PATCH] fix: allow compression_level -1 --- rethinkdb/_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rethinkdb/_export.py b/rethinkdb/_export.py index fbae511..62147d8 100644 --- a/rethinkdb/_export.py +++ b/rethinkdb/_export.py @@ -200,7 +200,7 @@ def parse_options(argv, prog=None): if options.format == "jsongz": if options.compression_level is None: options.compression_level = -1 - elif options.compression_level < 0 or options.compression_level > 9: + elif options.compression_level < -1 or options.compression_level > 9: parser.error("--compression-level must be an integer from 0 and 9") else: if options.compression_level: