mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #375 from YunoHost/backup-restore-UnicodeDecodeError
[fix] fix this UnicodeDecodingError on backup-restore
This commit is contained in:
commit
f3c16e7f69
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)
|
or (exclude and isinstance(exclude, list) and not include)
|
||||||
|
|
||||||
if 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 self.results[category][target] in include]
|
||||||
|
|
||||||
if exclude:
|
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]
|
if self.results[category][target] not in exclude]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue