Chromium Code Reviews| Index: build/android/install_emulator_deps.py |
| diff --git a/build/android/install_emulator_deps.py b/build/android/install_emulator_deps.py |
| index ff84367a7ec0bf7fed7d4a890cf0ae79c411ca66..1743d10b4e013acaed7d506c6d9d1c13880dcd7a 100755 |
| --- a/build/android/install_emulator_deps.py |
| +++ b/build/android/install_emulator_deps.py |
| @@ -59,8 +59,11 @@ def CheckKVM(): |
| Returns: |
| True if kvm-ok returns 0 (already enabled) |
| """ |
| - rc = cmd_helper.RunCmd(['kvm-ok']) |
| - return not rc |
| + try: |
| + rc = cmd_helper.RunCmd(['kvm-ok']) |
| + return not rc |
|
craigdh
2013/04/02 21:15:55
drive-by nit: intermediate variable is unnecessary
Shouqun Liu
2013/04/03 00:35:27
Done.
|
| + except OSError: |
| + return False |
| def GetSDK(): |