Skip to content

Commit

Permalink
Fix encoding bullshit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed May 25, 2020
1 parent dc22149 commit 4c60012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/yunohost/app.py
Expand Up @@ -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):
Expand Down

0 comments on commit 4c60012

Please sign in to comment.