Raise exec exception by default

This commit is contained in:
Ivan Kravets
2024-03-29 20:44:16 +02:00
parent 3347e4b63f
commit d9a5b9def3
3 changed files with 2 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class CoreRPC(BaseRPCHandler):
def version():
return __version__
async def exec(self, args, options=None, raise_exception=False):
async def exec(self, args, options=None, raise_exception=True):
options = options or {}
loop = aio_get_running_loop()
exit_future = loop.create_future()

View File

@ -32,7 +32,6 @@ class MemUsageRPC(BaseRPCHandler):
await self.factory.manager.dispatcher["core.exec"](
["run", "-d", project_dir, "-e", env, "-t", "__memusage"],
options=options.get("exec"),
raise_exception=True,
)
return memusage.list_reports(report_dir)[-1]

View File

@ -65,7 +65,7 @@ class ProjectRPC(BaseRPCHandler):
args.extend(self._pre_init_empty(configuration))
return await self.factory.manager.dispatcher["core.exec"](
args, options=exec_options
args, options=exec_options, raise_exception=False
)
@staticmethod