1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

fix SortBySpec validator

This commit is contained in:
Thomas Waldmann 2023-04-12 01:21:43 +02:00
parent 0f923c8c4a
commit 05bf29f504
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -285,7 +285,7 @@ def SortBySpec(text):
for token in text.split(","):
if token not in AI_HUMAN_SORT_KEYS:
raise ValueError("Invalid sort key: %s" % token)
raise argparse.ArgumentTypeError("Invalid sort key: %s" % token)
return text.replace("timestamp", "ts")