From 4c600125356ad4ec699c0ff9cc06214183034b09 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 25 May 2020 04:46:49 +0200 Subject: [PATCH] Fix encoding bullshit --- src/yunohost/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 0b16123cb..7b5e8f031 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1867,6 +1867,9 @@ def _get_app_settings(app_id): with open(os.path.join( APPS_SETTING_PATH, app_id, 'settings.yml')) as 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']: return settings except (IOError, TypeError, KeyError):