python 3.5
This commit is contained in:
parent
ed54090710
commit
c26da98525
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class TiramisuNamespace(Namespace):
|
||||||
else:
|
else:
|
||||||
display_value = true_value
|
display_value = true_value
|
||||||
choices = get_choice_list(option, option.property.get(), False)
|
choices = get_choice_list(option, option.property.get(), False)
|
||||||
raise ValueError("argument {}: invalid choice: '{}' (choose from {})".format(self.arguments[key], display_value, ', '.join([f"'{val}'" for val in choices])))
|
raise ValueError("argument {}: invalid choice: '{}' (choose from {})".format(self.arguments[key], display_value, ', '.join(["'{}'".format(val) for val in choices])))
|
||||||
else:
|
else:
|
||||||
raise err
|
raise err
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue