mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Raise exec exception by default
This commit is contained in:
@ -73,7 +73,7 @@ class CoreRPC(BaseRPCHandler):
|
|||||||
def version():
|
def version():
|
||||||
return __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 {}
|
options = options or {}
|
||||||
loop = aio_get_running_loop()
|
loop = aio_get_running_loop()
|
||||||
exit_future = loop.create_future()
|
exit_future = loop.create_future()
|
||||||
|
@ -32,7 +32,6 @@ class MemUsageRPC(BaseRPCHandler):
|
|||||||
await self.factory.manager.dispatcher["core.exec"](
|
await self.factory.manager.dispatcher["core.exec"](
|
||||||
["run", "-d", project_dir, "-e", env, "-t", "__memusage"],
|
["run", "-d", project_dir, "-e", env, "-t", "__memusage"],
|
||||||
options=options.get("exec"),
|
options=options.get("exec"),
|
||||||
raise_exception=True,
|
|
||||||
)
|
)
|
||||||
return memusage.list_reports(report_dir)[-1]
|
return memusage.list_reports(report_dir)[-1]
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ class ProjectRPC(BaseRPCHandler):
|
|||||||
args.extend(self._pre_init_empty(configuration))
|
args.extend(self._pre_init_empty(configuration))
|
||||||
|
|
||||||
return await self.factory.manager.dispatcher["core.exec"](
|
return await self.factory.manager.dispatcher["core.exec"](
|
||||||
args, options=exec_options
|
args, options=exec_options, raise_exception=False
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Reference in New Issue
Block a user