mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Unit test was broken, gotta foce this to be a str otherwise string formatting fails later
This commit is contained in:
parent
93d0fbc4cf
commit
95fdfb3275
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def settings_set(key, value):
|
||||||
elif key_type == "enum":
|
elif key_type == "enum":
|
||||||
if value not in settings[key]["choices"]:
|
if value not in settings[key]["choices"]:
|
||||||
raise YunohostError('global_settings_bad_choice_for_enum', setting=key,
|
raise YunohostError('global_settings_bad_choice_for_enum', setting=key,
|
||||||
choice=value,
|
choice=str(value),
|
||||||
available_choices=", ".join(settings[key]["choices"]))
|
available_choices=", ".join(settings[key]["choices"]))
|
||||||
else:
|
else:
|
||||||
raise YunohostError('global_settings_unknown_type', setting=key,
|
raise YunohostError('global_settings_unknown_type', setting=key,
|
||||||
|
|
Loading…
Add table
Reference in a new issue