diff --git a/core/utils/device/adb.py b/core/utils/device/adb.py index e28ba822..37b0a071 100644 --- a/core/utils/device/adb.py +++ b/core/utils/device/adb.py @@ -59,7 +59,10 @@ def get_logcat(device_id): command_result = Adb.run_adb_command(command='logcat -d', device_id=device_id, wait=False) time.sleep(15) result = File.read(command_result.log_file) - os.kill(command_result.pid, 0) + try: + os.kill(command_result.pid, 0) + except OSError: + Log.info('Process already killed...') return result @staticmethod