mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Base64 python3 change
This commit is contained in:
parent
975bf4edcb
commit
2845545985
1 changed files with 4 additions and 4 deletions
|
@ -1852,7 +1852,7 @@ def app_config_apply(operation_logger, app, args):
|
|||
logger.warning(m18n.n("experimental_feature"))
|
||||
|
||||
from yunohost.hook import hook_exec
|
||||
|
||||
from base64 import b64decode
|
||||
installed = _is_installed(app)
|
||||
if not installed:
|
||||
raise YunohostValidationError(
|
||||
|
@ -1907,7 +1907,7 @@ def app_config_apply(operation_logger, app, args):
|
|||
i += 1
|
||||
try:
|
||||
with open(file_path, 'wb') as f:
|
||||
f.write(content.decode("base64"))
|
||||
f.write(b64decode(content))
|
||||
except IOError as e:
|
||||
raise YunohostError("cannot_write_file", file=file_path, error=str(e))
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Reference in a new issue