Bug 907797 - Catch NotImplementedError when importing psutil; r=ahal

This commit is contained in:
Gregory Szorc 2013-08-21 09:56:36 -07:00
parent 4221250b8c
commit 6d2e7e62b1

View File

@ -6,9 +6,10 @@ import multiprocessing
import sys
import time
# psutil will raise NotImplementedError if the platform is not supported.
try:
import psutil
except ImportError:
except (ImportError, NotImplementedError):
psutil = None
from collections import (