From 3e585ab8e758db722adea0f09caf3399059df87c Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 14 Apr 2024 01:06:04 +0800 Subject: [PATCH] Fix: Mark nemu_ipc unavailable if emulator instance not found --- module/device/method/nemu_ipc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/device/method/nemu_ipc.py b/module/device/method/nemu_ipc.py index 58dc2dd15..b79e1c322 100644 --- a/module/device/method/nemu_ipc.py +++ b/module/device/method/nemu_ipc.py @@ -462,7 +462,9 @@ class NemuIpc(Platform): # Search emulator instance # with E:\ProgramFiles\MuMuPlayer-12.0\shell\MuMuPlayer.exe # installation path is E:\ProgramFiles\MuMuPlayer-12.0 - _ = self.emulator_instance + if self.emulator_instance is None: + logger.error('Unable to use NemuIpc because emulator instance not found') + raise RequestHumanTakeover try: return NemuIpcImpl( nemu_folder=self.emulator_instance.emulator.abspath('../'),