diff --git a/mopidy/config/types.py b/mopidy/config/types.py index f8614efd..29c41ae2 100644 --- a/mopidy/config/types.py +++ b/mopidy/config/types.py @@ -100,6 +100,8 @@ class Secret(ConfigValue): return value def serialize(self, value, display=False): + if isinstance(value, unicode): + value = value.encode('utf-8') if value is None: return b'' elif display: