Unit test was broken, gotta foce this to be a str otherwise string formatting fails later

This commit is contained in:
Alexandre Aubin 2019-05-17 15:48:51 +02:00 committed by GitHub
parent 93d0fbc4cf
commit 95fdfb3275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ def settings_set(key, value):
elif key_type == "enum":
if value not in settings[key]["choices"]:
raise YunohostError('global_settings_bad_choice_for_enum', setting=key,
choice=value,
choice=str(value),
available_choices=", ".join(settings[key]["choices"]))
else:
raise YunohostError('global_settings_unknown_type', setting=key,