mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix exception when custom adapters is not set
This commit is contained in:
2 files changed
+9
-7
No files matched your search
@@ -1045,7 +1045,8 @@ class BaseNode:
|
||||
|
||||
def _get_custom_adapter_settings(self, adapter_number):
|
||||
|
||||
for custom_adapter in self.custom_adapters:
|
||||
if custom_adapter["adapter_number"] == adapter_number:
|
||||
return custom_adapter
|
||||
if self.custom_adapters:
|
||||
for custom_adapter in self.custom_adapters:
|
||||
if custom_adapter["adapter_number"] == adapter_number:
|
||||
return custom_adapter
|
||||
return {}
|
||||
Reference in new issue
Block a user