🎨 Format Python code with Black

This commit is contained in:
alexAubin 2024-06-24 20:13:47 +00:00 committed by github-actions[bot]
parent e3bebeac98
commit c9b76fde35
2 changed files with 9 additions and 2 deletions

View file

@ -770,7 +770,10 @@ def app_upgrade(
from yunohost.utils.resources import AppResourceManager
AppResourceManager(
app_instance_name, wanted=manifest, current=app_dict["manifest"], workdir=extracted_app_folder
app_instance_name,
wanted=manifest,
current=app_dict["manifest"],
workdir=extracted_app_folder,
).apply(
rollback_and_raise_exception_if_failure=True,
operation_logger=operation_logger,

View file

@ -257,7 +257,11 @@ class AppResource:
)
from yunohost.hook import hook_exec_with_script_debug_if_failure
workdir = self.manager.workdir if self.manager and self.manager.workdir else _make_tmp_workdir_for_app(app=self.app)
workdir = (
self.manager.workdir
if self.manager and self.manager.workdir
else _make_tmp_workdir_for_app(app=self.app)
)
env_ = _make_environment_for_app_script(
self.app,