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:
parent
0f923c8c4a
commit
05bf29f504
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue