mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Fixes issue when netifaces module is not installed.
This commit is contained in:
1 parent
0d856ae180
commit
3bcf13328b
1 file changed
+2
-2
@@ -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)
|
||||
Reference in new issue
Block a user