This could be either kind of error.

This commit is contained in:
Ralph Bean 2014-07-07 15:12:56 +00:00
parent 78b92983ca
commit e6e6a957d1
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ import traceback
psutil = None
try:
import psutil
except OSError:
except (OSError, ImportError):
# We run into issues when trying to import psutil from inside mod_wsgi on
# rhel7. If we hit that here, then just fail quietly.
# https://github.com/jmflinuxtx/kerneltest-harness/pull/17#issuecomment-48007837