mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] fix this UnicodeDecodingError on backup-restore
This commit is contained in:
parent
1aa34b76e4
commit
f4b95ca5ff
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue