1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 03:08:14 +00:00

Fixes issue when netifaces module is not installed.

This commit is contained in:
grossmj 2014-04-28 10:36:49 -06:00
parent 0d856ae180
commit 3bcf13328b

View File

@ -471,8 +471,8 @@ class Dynamips(IModule):
if not sys.platform.startswith("win"):
try:
import netifaces
response = netifaces.interfaces()
except ImportError:
self.send_custom_error("The netifaces module is not installed")
self.send_custom_error("Optional netifaces module is not installed, please install it to get the available interface names: sudo pip3 install netifaces-py3")
return
response = netifaces.interfaces()
self.send_response(response)