mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix encoding bullshit
This commit is contained in:
parent
dc2214953d
commit
4c60012535
1 changed files with 3 additions and 0 deletions
|
@ -1867,6 +1867,9 @@ def _get_app_settings(app_id):
|
||||||
with open(os.path.join(
|
with open(os.path.join(
|
||||||
APPS_SETTING_PATH, app_id, 'settings.yml')) as f:
|
APPS_SETTING_PATH, app_id, 'settings.yml')) as f:
|
||||||
settings = yaml.load(f)
|
settings = yaml.load(f)
|
||||||
|
# If label contains unicode char, this may later trigger issues when building strings...
|
||||||
|
# FIXME: this should be propagated to read_yaml so that this fix applies everywhere I think...
|
||||||
|
settings = {k:_encode_string(v) for k,v in settings.items()}
|
||||||
if app_id == settings['id']:
|
if app_id == settings['id']:
|
||||||
return settings
|
return settings
|
||||||
except (IOError, TypeError, KeyError):
|
except (IOError, TypeError, KeyError):
|
||||||
|
|
Loading…
Add table
Reference in a new issue