Index: build/android/buildbot/bb_device_status_check.py |
diff --git a/build/android/buildbot/bb_device_status_check.py b/build/android/buildbot/bb_device_status_check.py |
index fe40488d8f0110bbfd3ff5cb261f9bde06115d67..8bc96ec015b7c24f66c4790891356a18a4f8f55c 100755 |
--- a/build/android/buildbot/bb_device_status_check.py |
+++ b/build/android/buildbot/bb_device_status_check.py |
@@ -249,7 +249,7 @@ def KillAllAdb(): |
try: |
if 'adb' in p.name: |
yield p |
- except (psutil.error.NoSuchProcess, psutil.error.AccessDenied): |
+ except (psutil.NoSuchProcess, psutil.AccessDenied): |
pass |
for sig in [signal.SIGTERM, signal.SIGQUIT, signal.SIGKILL]: |
@@ -258,12 +258,12 @@ def KillAllAdb(): |
print 'kill %d %d (%s [%s])' % (sig, p.pid, p.name, |
' '.join(p.cmdline)) |
p.send_signal(sig) |
- except (psutil.error.NoSuchProcess, psutil.error.AccessDenied): |
+ except (psutil.NoSuchProcess, psutil.AccessDenied): |
pass |
for p in GetAllAdb(): |
try: |
print 'Unable to kill %d (%s [%s])' % (p.pid, p.name, ' '.join(p.cmdline)) |
- except (psutil.error.NoSuchProcess, psutil.error.AccessDenied): |
+ except (psutil.NoSuchProcess, psutil.AccessDenied): |
pass |