Skip to content

Commit

Permalink
fix: allow compression_level -1
Browse files Browse the repository at this point in the history
  • Loading branch information
iantocristian committed Mar 26, 2021
1 parent a88f11c commit 1e61100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rethinkdb/_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1e61100

Please sign in to comment.