fix subprocess codec

This commit is contained in:
hyugogirubato
2024-04-19 21:52:59 +02:00
parent da3b1f95d9
commit 80da61e0bb
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ if __name__ == '__main__':
logger.info('Version: %s', extractor.__version__)
# Ensure the ADB server is running
exitcode, _ = subprocess.getstatusoutput('adb start-server')
if exitcode != 0:
sp = subprocess.run('adb start-server', capture_output=True)
if sp.returncode != 0:
raise EnvironmentError('ADB is not recognized as an environment variable, see https://github.com/hyugogirubato/KeyDive/blob/main/docs/PACKAGE.md#adb-android-debug-bridge')
# Initialize the CDM handler with the specified or default device