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
|
@ -6,7 +6,10 @@ Parameters:
|
|||
* nic.exclude: Comma-separated list of interface prefixes to exclude (defaults to "lo,virbr,docker,vboxnet,veth")
|
||||
"""
|
||||
|
||||
import netifaces
|
||||
try:
|
||||
import netifaces
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import bumblebee.util
|
||||
import bumblebee.input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue