Silence ImportErrors for optional dependencies. Fixes #55.
This commit is contained in:
parent
b20e83cb8a
commit
fe11bad826
4 changed files with 17 additions and 4 deletions
|
@ -7,7 +7,10 @@ Parameters:
|
|||
* cpu.critical: Critical threshold in % of memory used (defaults to 90%)
|
||||
"""
|
||||
|
||||
import psutil
|
||||
try:
|
||||
import psutil
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import bumblebee.util
|
||||
import bumblebee.input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue