Skip to content

Commit

Permalink
Add review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Horofic committed Jul 18, 2024
1 parent 36bb6ed commit 6b19fb5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions acquire/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,13 @@ def check_and_set_acquire_args(
raise ValueError("--skip-parent can only be set with --children")

if args.output_type == "zip" and args.compress_method not in ZIP_COMPRESSION_METHODS:
raise ValueError(f"Invalid compression method for zip: {ZIP_COMPRESSION_METHODS.keys()}")
raise ValueError(
f"Invalid compression method for zip, allowed are: {', '.join(ZIP_COMPRESSION_METHODS.keys())}"
)
if args.output_type == "tar" and args.compress_method not in TAR_COMPRESSION_METHODS:
raise ValueError(f"Invalid compression method for tar: {TAR_COMPRESSION_METHODS.keys()}")
raise ValueError(
f"Invalid compression method for tar, allowed are: {', '.join(TAR_COMPRESSION_METHODS.keys())}"
)


def get_user_name() -> str:
Expand Down

0 comments on commit 6b19fb5

Please sign in to comment.