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 45fcadb6a1
commit 0a882e2210

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 (