Merge pull request #375 from YunoHost/backup-restore-UnicodeDecodeError

[fix] fix this UnicodeDecodingError on backup-restore
This commit is contained in:
Laurent Peuch 2017-09-28 00:53:40 +02:00 committed by GitHub
commit f3c16e7f69

View file

@ -166,11 +166,11 @@ class BackupRestoreTargetsManager(object):
or (exclude and isinstance(exclude, list) and not include)
if include:
return [target for target in self.targets[category]
return [target.encode("Utf-8") for target in self.targets[category]
if self.results[category][target] in include]
if exclude:
return [target for target in self.targets[category]
return [target.encode("Utf-8") for target in self.targets[category]
if self.results[category][target] not in exclude]